File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
SWIFT_SOURCES := main.swift
2
+ SWIFTFLAGS_EXTRAS := -target $(TRIPLE )
2
3
3
4
include Makefile.rules
Original file line number Diff line number Diff line change 1
1
SWIFT_SOURCES := main.swift
2
+ ifeq "$(TRIPLE ) " ""
2
3
SWIFTFLAGS_EXTRAS := -Xfrontend -no-serialize-debugging-options
4
+ else
5
+ # Target override for the simulator testcase.
6
+ SWIFTFLAGS_EXTRAS := -Xfrontend -no-serialize-debugging-options -target $(TRIPLE )
7
+ endif
3
8
SWIFT_BRIDGING_HEADER := bridging-header.h
4
9
LD_EXTRAS := ignored.o
5
10
6
11
all : ignored.o $(EXE )
7
12
8
- # Artificially inject a wrong SDK into a C file to test that it is ebing ignored.
13
+ # Artificially inject a wrong SDK into a C file to test that it is being ignored.
9
14
ignored.o : ignored.c
10
15
$(CC ) -target $(ARCH ) -apple-macos -c $< -o $@ \
11
16
-isysroot $(shell xcrun --sdk iphonesimulator --show-sdk-path)
You can’t perform that action at this time.
0 commit comments