Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Commit 2b4b32e

Browse files
committed
test: only pass -sdk on Darwin targets
On non-Darwin targets, the `-sdk` parameter may or may not contain the sysroot which is needed to enable the use of `-sdk` to allow cross-compilation. This SDK contains the swift modules and the swift runtime registrar. Setting the SDKROOT to `/` on Linux requires that the Swift SDK contents are installed to `/`.
1 parent d8e50a7 commit 2b4b32e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,9 @@ ifeq "$(USESWIFTDRIVER)" "1"
538538
ifneq "$(TRIPLE)" ""
539539
SWIFTFLAGS += -target $(TRIPLE)
540540
endif
541-
SWIFTFLAGS += -sdk "$(SWIFTSDKROOT)"
541+
ifeq "$(OS)" "Darwin"
542+
SWIFTFLAGS += -sdk "$(SWIFTSDKROOT)"
543+
endif
542544
endif
543545

544546
#----------------------------------------------------------------------

0 commit comments

Comments
 (0)