Skip to content

Commit 9bb8877

Browse files
authored
Merge pull request #25623 from hyp/51_fix_build_llvm0
[5.1] build-script-impl: do not copy the darwin compiler-rt builtin archives when using --build-llvm 0
2 parents 542b10c + 7e7f964 commit 9bb8877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-script-impl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2926,7 +2926,7 @@ for host in "${ALL_HOSTS[@]}"; do
29262926
# When we are building LLVM copy over the compiler-rt
29272927
# builtins for iOS/tvOS/watchOS to ensure that Swift's
29282928
# stdlib can use compiler-rt builtins when targetting iOS/tvOS/watchOS.
2929-
if [[ "${product}" == "llvm" ]]; then
2929+
if [[ "${product}" == "llvm" && "${BUILD_LLVM}" == "1" ]]; then
29302930
if [[ "$(uname -s)" == "Darwin" ]] ; then
29312931
HOST_CXX_DIR=$(dirname "${HOST_CXX}")
29322932
HOST_CXX_BUILTINS_VERSION=$(ls "$HOST_CXX_DIR/../lib/clang" | awk '{print $0}')

0 commit comments

Comments
 (0)