From 43008267b29f29d98a9539b46cdafe7fa50824b0 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Fri, 7 Jan 2022 19:10:10 +0100 Subject: [PATCH] Toolchain: Do not overwrite libraries with stubs when rebuilding LLVM We erroneously appended ".so" after the base name for the library, so we ended up checking for the existence of e.g. `libc.so.so`, which obviously didn't exist, so we overwrote the existing libraries when we rebuilt the toolchain. --- Toolchain/BuildClang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Toolchain/BuildClang.sh b/Toolchain/BuildClang.sh index 60d3003e721..4dd1865b29f 100755 --- a/Toolchain/BuildClang.sh +++ b/Toolchain/BuildClang.sh @@ -231,7 +231,7 @@ for arch in $USERLAND_ARCHS; do mkdir -p Root/usr/lib/ for lib in "$DIR/Stubs/${arch}clang/"*".so"; do lib_name=$(basename "$lib") - [ ! -f "Root/usr/lib/${lib_name}.so" ] && cp "$lib" "Root/usr/lib/${lib_name}" + [ ! -f "Root/usr/lib/${lib_name}" ] && cp "$lib" "Root/usr/lib/${lib_name}" done popd done