Skip to content

Commit c7c42ac

Browse files
committed
Swift: port frontend-invocations test to linux
`swift-frontend` will be in `$PATH` on Linux, and apparently it does not require the `-sdk` option.
1 parent c02387a commit c7c42ac

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=swift-frontend
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)