Strip symbols of all binaries generated in /bin (#109)

pull/115/head
Andrew Brown 5 years ago committed by GitHub
parent 4d08c33d25
commit f754491ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -164,7 +164,7 @@ build/config.BUILT:
build: build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxxabi.BUILT build/libcxx.BUILT build/config.BUILT
strip: build/llvm.BUILT
cd $(PREFIX)/bin; strip clang-* clang++-* lld llvm-ar
./strip_symbols.sh $(PREFIX)
package: build/package.BUILT

@ -0,0 +1,9 @@
#!/usr/bin/env sh
set -e
DIRECTORY=${1:-/opt/wasi-sdk/bin}
EXECUTABLES=$(find ${DIRECTORY} -type f -executable)
for e in ${EXECUTABLES}; do
echo "Stripping symbols: ${e}"
strip ${e} || echo "Failed to strip symbols for ${e}; continuing on."
done
Loading…
Cancel
Save