Skip to content

Commit 7a6f84d

Browse files
authored
When building standalone stdlib, explicitly use C/C++ compilers from NATIVE_CLANG_TOOLS_PATH (#33675)
1 parent 10fa19b commit 7a6f84d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/build-script-impl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,13 @@ for host in "${ALL_HOSTS[@]}"; do
14071407
fi
14081408
fi
14091409

1410+
if [[ "${NATIVE_CLANG_TOOLS_PATH}" ]] ; then
1411+
common_cmake_options_host+=(
1412+
-DCMAKE_C_COMPILER="${NATIVE_CLANG_TOOLS_PATH}/clang"
1413+
-DCMAKE_CXX_COMPILER="${NATIVE_CLANG_TOOLS_PATH}/clang++"
1414+
)
1415+
fi
1416+
14101417
llvm_cmake_options=(
14111418
"${llvm_cmake_options[@]}"
14121419
-DCMAKE_INSTALL_PREFIX:PATH="$(get_host_install_prefix ${host})"

0 commit comments

Comments
 (0)