mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +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
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…
Add table
Add a link
Reference in a new issue