chore: final cleanup?

This commit is contained in:
Sebastian Ullrich
2021-11-15 15:47:50 +01:00
parent 6cda043e5b
commit 74a616a965
3 changed files with 5 additions and 5 deletions

View File

@@ -12,9 +12,9 @@ set -uo pipefail
mkdir -p stage1/{bin,lib,lib/glibc,include/clang}
CP="cp -d" # preserve symlinks
# a C compiler!
$CP $(realpath llvm/bin/clang) stage1/bin/clang
cp -L llvm/bin/clang stage1/bin/
# a linker!
$CP llvm/bin/{ld.lld,lld} stage1/bin/
cp -L llvm/bin/ld.lld stage1/bin/
# dependencies of the above
$CP llvm/lib/lib{clang-cpp,LLVM}*.so* stage1/lib/
$CP $ZLIB/lib/libz.so* stage1/lib/

View File

@@ -13,9 +13,9 @@ SDK=$(xcrun --show-sdk-path)
mkdir -p stage1/{bin,lib/libc,include/clang}
CP="gcp -d" # preserve symlinks
# a C compiler!
$CP $(grealpath llvm/bin/clang) stage1/bin/clang
gcp -L llvm/bin/clang stage1/bin/
# a linker!
gcp llvm/bin/ld64.lld stage1/bin/
gcp -L llvm/bin/ld64.lld stage1/bin/
# dependencies of the above
$CP llvm/lib/lib{clang-cpp,LLVM}.dylib stage1/lib/
#find stage1 -type f -exec strip --strip-unneeded '{}' \; 2> /dev/null

View File

@@ -16,7 +16,7 @@ cp llvm/bin/clang stage1/bin/
# a linker!
cp llvm/bin/{ld.lld,lld} stage1/bin/
# dependencies of the above
cp $(ldd llvm/bin/{clang,lld}.exe | cut -f3 -d' ' --only-delimited | grep llvm) stage1/bin
cp $(ldd llvm/bin/{clang,lld}.exe | cut -f3 -d' ' --only-delimited | grep -E 'llvm|clang64') stage1/bin
# lean.h dependencies
cp llvm/lib/clang/*/include/{std*,__std*,limits}.h stage1/include/clang
# single Windows dependency