Skip to content

Commit bb167a3

Browse files
authored
Merge pull request #10187 from github/redsun82/swift-port-frontend-invocations-test-to-linux
Swift: port frontend-invocations test to linux
2 parents c02387a + ced36ff commit bb167a3

File tree

11 files changed

+15
-10
lines changed

11 files changed

+15
-10
lines changed

swift/integration-tests/osx-only/frontend-invocations/Makefile

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
OS=$(shell uname)
2+
ifeq ($(OS),Darwin)
3+
SDK=-sdk $(shell xcrun -show-sdk-path)
4+
FRONTEND=$(shell xcrun -find swift-frontend)
5+
else
6+
SDK=""
7+
FRONTEND=swiftc
8+
endif
9+
10+
all:
11+
$(FRONTEND) -frontend -c A.swift $(SDK)
12+
$(FRONTEND) -frontend -c B.swift -o B.o $(SDK)
13+
$(FRONTEND) -frontend -c -primary-file C.swift $(SDK)
14+
$(FRONTEND) -frontend -c -primary-file D.swift -o D.o $(SDK)
15+
$(FRONTEND) -frontend -c -primary-file E.swift Esup.swift -o E.o $(SDK)

0 commit comments

Comments
 (0)