Skip to content

Commit 9adbace

Browse files
committed
Remove compiler-rt from install targets for cross compile host
1 parent bb356d3 commit 9adbace

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/build-script-impl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2792,7 +2792,11 @@ for host in "${ALL_HOSTS[@]}"; do
27922792
if [[ "${LLVM_INSTALL_COMPONENTS}" == "all" ]] ; then
27932793
INSTALL_TARGETS=install
27942794
elif [[ -n "${LLVM_INSTALL_COMPONENTS}" ]] ; then
2795-
INSTALL_TARGETS=install-$(echo ${LLVM_INSTALL_COMPONENTS} | sed -E 's/;/ install-/g')
2795+
if [[ $(is_cross_tools_host ${host}) && "${LLVM_INSTALL_COMPONENTS}" == *"compiler-rt"* ]]; then
2796+
INSTALL_TARGETS=install-$(echo ${LLVM_INSTALL_COMPONENTS} | sed -E 's/compiler-rt;//g' |sed -E 's/;/ install-/g')
2797+
else
2798+
INSTALL_TARGETS=install-$(echo ${LLVM_INSTALL_COMPONENTS} | sed -E 's/;/ install-/g')
2799+
fi
27962800
fi
27972801
;;
27982802
libcxx)

0 commit comments

Comments
 (0)