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