Skip to content

Commit c6e841c

Browse files
committed
[LLDB Test] Add '-link-objc-runtime' to 'swiftc' invocations when ObjC interop is required by the test.
This ensures the Swift Driver will formulate a linker driver invocation that will pick up the ObjC runtime.
1 parent 01dfac2 commit c6e841c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ endif
562562
#----------------------------------------------------------------------
563563
ifeq "$(SWIFT_OBJC_INTEROP)" "1"
564564
ifeq "$(OS)" "Darwin"
565-
SWIFTFLAGS += -framework Foundation -framework CoreGraphics
565+
SWIFTFLAGS += -link-objc-runtime -framework Foundation -framework CoreGraphics
566566
LDFLAGS += -lswiftObjectiveC -lswiftFoundation -framework Foundation -framework CoreGraphics
567567
else
568568
# CFLAGS_EXTRAS is used via "dotest.py -E" to pass the -I and -L paths

0 commit comments

Comments
 (0)