Skip to content

Commit 0bdc26a

Browse files
committed
[build] Set CMAKE_Swift_COMPILER_TARGET when cross-compiling corelibs
1 parent 43970ac commit 0bdc26a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/build-script-impl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,12 @@ function set_build_options_for_host() {
841841
# and it must be the same for both LLVM and Swift
842842

843843
if [[ "${SWIFT_HOST_TRIPLE}" ]] ; then
844+
# Adding this until we can configure these corelibs repos with a CMake
845+
# toolchain file
846+
SWIFT_TARGET_CMAKE_OPTIONS+=(
847+
-DCMAKE_Swift_COMPILER_TARGET:STRING="${SWIFT_HOST_TRIPLE}"
848+
)
849+
844850
llvm_cmake_options+=(
845851
-DLLVM_HOST_TRIPLE:STRING="${SWIFT_HOST_TRIPLE}"
846852
)

0 commit comments

Comments
 (0)