Skip to content

Commit 70d5319

Browse files
committed
Update testcases for upstream Makefile.rules change that removed TRIPLE
The variable was removed in https://reviews.llvm.org/D85539
1 parent 8f355fd commit 70d5319

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
SWIFT_SOURCES := main.swift
2+
SWIFTFLAGS_EXTRAS := -target $(TRIPLE)
23

34
include Makefile.rules

lldb/test/API/lang/swift/xcode_sdk/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
SWIFT_SOURCES := main.swift
2+
ifeq "$(TRIPLE)" ""
23
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
38
SWIFT_BRIDGING_HEADER := bridging-header.h
49
LD_EXTRAS := ignored.o
510

611
all: ignored.o $(EXE)
712

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.
914
ignored.o: ignored.c
1015
$(CC) -target $(ARCH)-apple-macos -c $< -o $@ \
1116
-isysroot $(shell xcrun --sdk iphonesimulator --show-sdk-path)

0 commit comments

Comments
 (0)