Skip to content

Commit 2c8a5e6

Browse files
committed
Set Swift clang-linker path
The swift driver is picking up the system clang instead of using the clang set in `CC`. The system clang is attempting to use bfd to link Swift, which doesn't work due to Swift's protected symbol usage. Set the swift-driver tool directory based on the location of the clang in use to ensure that we're picking up a consistent set of tools across all of the tests.
1 parent c66e398 commit 2c8a5e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ ifeq "$(USESWIFTDRIVER)" "1"
616616
ifeq "$(OS)" "Darwin"
617617
SWIFTFLAGS += -sdk "$(SWIFTSDKROOT)"
618618
endif
619+
SWIFTFLAGS += -tools-directory "$(shell dirname $(CC))"
619620
endif
620621

621622
#----------------------------------------------------------------------

0 commit comments

Comments
 (0)