From aebb35a9692f28bc4c9349fa1f5891c17a9705ff Mon Sep 17 00:00:00 2001 From: xiajingze Date: Fri, 9 May 2025 16:09:02 +0800 Subject: [PATCH] [build] Fix libcxx build failure without -i option Without the -i option, the build fails when compiling libcxx due to missing compiler. Fixed by using the build directory instead. --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 5c47c21e440e..24a4ebb4abaa 100755 --- a/build.sh +++ b/build.sh @@ -410,8 +410,8 @@ if [ $do_install == "1" ]; then fi # build libcxx/libcxxabi with the just-built clang/clang++ -c_compiler="$install_prefix/bin/clang" -cxx_compiler="$install_prefix/bin/clang++" +c_compiler="$build_prefix/bin/clang" +cxx_compiler="$build_prefix/bin/clang++" if pushd runtimes > /dev/null 2>&1; then if [ ! -f "$build_prefix"/projects/libcxx/CMakeCache.txt ]; then mkdir -p "$build_prefix/projects/libcxx" && cd "$build_prefix/projects/libcxx" -- Gitee