mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
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.
This commit is contained in:
parent
b3dbf204fc
commit
43008267b2
Notes:
sideshowbarker
2024-07-17 21:16:20 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/43008267b29 Pull-request: https://github.com/SerenityOS/serenity/pull/11701 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/jepebe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue