From 749158c8c1a7a32361c4fbc1dfc53e7ce08a6d49 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Mon, 8 Nov 2021 17:53:09 +0100 Subject: [PATCH] perf: strip LLVM binaries --- script/prepare-llvm-linux.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/script/prepare-llvm-linux.sh b/script/prepare-llvm-linux.sh index 29cbbffc89..693a75fd7d 100755 --- a/script/prepare-llvm-linux.sh +++ b/script/prepare-llvm-linux.sh @@ -18,6 +18,7 @@ $CP llvm/bin/{ld.lld,lld} stage1/bin/ # dependencies of the above $CP llvm/lib/lib{clang-cpp,LLVM}*.so* stage1/lib/ $CP $ZLIB/lib/libz.so* stage1/lib/ +find stage1 -type f -exec strip --strip-unneeded '{}' \; 2> /dev/null # lean.h dependencies $CP llvm/lib/clang/*/include/{std*,__std*,limits}.h stage1/include/clang # ELF dependencies, must be put there for `--sysroot`