Skip to content

Commit 53a3a65

Browse files
authored
Merge pull request #3583 from gottesmm/build_compiler_rt_externally_on_all_platforms
[build-script] Make sure that we build using an external compiler-rt …
2 parents ec920c9 + 6c3dc31 commit 53a3a65

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/build-script-impl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,6 @@ function set_build_options_for_host() {
628628
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="${cmake_osx_deployment_target}"
629629
-DCMAKE_OSX_SYSROOT:PATH="$(xcrun --sdk ${xcrun_sdk_name} --show-sdk-path)"
630630
-DLLVM_ENABLE_LIBCXX:BOOL=TRUE
631-
-DLLVM_TOOL_COMPILER_RT_BUILD:BOOL="$(false_true ${SKIP_BUILD_COMPILER_RT})"
632-
-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL="$(false_true ${SKIP_BUILD_COMPILER_RT})"
633631
-DCOMPILER_RT_ENABLE_IOS:BOOL=FALSE
634632
-DCOMPILER_RT_ENABLE_WATCHOS:BOOL=FALSE
635633
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
@@ -675,6 +673,11 @@ function set_build_options_for_host() {
675673
;;
676674
esac
677675

676+
llvm_cmake_options+=(
677+
-DLLVM_TOOL_COMPILER_RT_BUILD:BOOL="$(false_true ${SKIP_BUILD_COMPILER_RT})"
678+
-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL="$(false_true ${SKIP_BUILD_COMPILER_RT})"
679+
)
680+
678681
if [[ "${llvm_target_arch}" ]] ; then
679682
llvm_cmake_options+=(
680683
-DLLVM_TARGET_ARCH="${llvm_target_arch}"

0 commit comments

Comments
 (0)