Skip to content

Commit 267c4be

Browse files
authored
Merge pull request #28517 from ixrevo/SR-11880_skip-building-compiler-rt-with-xcode
[build] SR-11880 skip building compiler-rt with --xcode
2 parents 0cc9923 + 4c8f91d commit 267c4be

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

utils/build-script-impl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,10 +1677,19 @@ for host in "${ALL_HOSTS[@]}"; do
16771677
-DLLVM_INCLUDE_DOCS:BOOL=TRUE
16781678
-DLLVM_ENABLE_LTO:STRING="${LLVM_ENABLE_LTO}"
16791679
-DCOMPILER_RT_INTERCEPT_LIBDISPATCH=ON
1680-
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;compiler-rt;"
16811680
"${llvm_cmake_options[@]}"
16821681
)
16831682

1683+
if [[ "${SKIP_BUILD_COMPILER_RT}" ]]; then
1684+
cmake_options+=(
1685+
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;"
1686+
)
1687+
else
1688+
cmake_options+=(
1689+
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;compiler-rt;"
1690+
)
1691+
fi
1692+
16841693
cmake_options+=(
16851694
-DLLVM_TOOL_LLD_BUILD:BOOL=TRUE
16861695
)

0 commit comments

Comments
 (0)