Skip to content

Commit 1a0a44b

Browse files
committed
[build] Set CMAKE_Swift_COMPILER_TARGET when cross-compiling corelibs
1 parent badaf82 commit 1a0a44b

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
@@ -827,6 +827,12 @@ function set_build_options_for_host() {
827827
# and it must be the same for both LLVM and Swift
828828

829829
if [[ "${SWIFT_HOST_TRIPLE}" ]] ; then
830+
# Adding this until we can configure these corelibs repos with a CMake
831+
# toolchain file
832+
SWIFT_TARGET_CMAKE_OPTIONS+=(
833+
-DCMAKE_Swift_COMPILER_TARGET:STRING="${SWIFT_HOST_TRIPLE}"
834+
)
835+
830836
llvm_cmake_options+=(
831837
-DLLVM_HOST_TRIPLE:STRING="${SWIFT_HOST_TRIPLE}"
832838
)

0 commit comments

Comments
 (0)