Skip to content

Commit 5e342aa

Browse files
committed
Merge pull request #1759 from vedantk/cross-compile-compiler-rt
Don't try to build compiler-rt when cross-compiling
2 parents eadc7b4 + 8d044c3 commit 5e342aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/build-script-impl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,8 @@ function set_deployment_target_based_options() {
488488
-DCMAKE_OSX_SYSROOT:PATH="$(xcrun --sdk ${xcrun_sdk_name} --show-sdk-path)"
489489
-DLLVM_HOST_TRIPLE:STRING="${llvm_host_triple}"
490490
-DLLVM_ENABLE_LIBCXX:BOOL=TRUE
491-
-DCOMPILER_RT_ENABLE_IOS:BOOL=$(false_true ${SKIP_IOS})
491+
-DLLVM_TOOL_COMPILER_RT_BUILD:BOOL="$(false_true ${#CROSS_COMPILE_TOOLS_DEPLOYMENT_TARGETS[@]})"
492+
-DCOMPILER_RT_ENABLE_IOS:BOOL="$(false_true ${SKIP_IOS})"
492493
-DCOMPILER_RT_ENABLE_WATCHOS:BOOL=FALSE
493494
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
494495
)

0 commit comments

Comments
 (0)