From c6e841c3c3aa9513854a473b1e684e938b47fac6 Mon Sep 17 00:00:00 2001 From: Artem Chikin Date: Wed, 16 Nov 2022 13:40:24 -0800 Subject: [PATCH] [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. --- lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules index 2163b73b06547..a2b05b7d53522 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -562,7 +562,7 @@ endif #---------------------------------------------------------------------- ifeq "$(SWIFT_OBJC_INTEROP)" "1" ifeq "$(OS)" "Darwin" - SWIFTFLAGS += -framework Foundation -framework CoreGraphics + SWIFTFLAGS += -link-objc-runtime -framework Foundation -framework CoreGraphics LDFLAGS += -lswiftObjectiveC -lswiftFoundation -framework Foundation -framework CoreGraphics else # CFLAGS_EXTRAS is used via "dotest.py -E" to pass the -I and -L paths