From 245aa79b4d3c4549c43526fb5558f83bb700be96 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 f6bcbe6dcd082..9cab8bf5ce04a 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -527,7 +527,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