Skip to content

Commit 79b7c96

Browse files
committed
[build-script] Don't build compiler-rt when cross-compiling
1 parent b2b5247 commit 79b7c96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/build-script-impl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ 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+
-DLLVM_BUILD_EXTERNAL_COMPILER_RT=$(true_false "${CROSS_COMPILE_TOOLS_DEPLOYMENT_TARGETS}")
491492
-DCOMPILER_RT_ENABLE_IOS:BOOL=$(false_true ${SKIP_IOS})
492493
-DCOMPILER_RT_ENABLE_WATCHOS:BOOL=FALSE
493494
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE

0 commit comments

Comments
 (0)