mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Travis: Strip every executable
This cuts down the size of a Toolchain cache entry by another quarter. (About 250 MiB to about 190 MiB).
This commit is contained in:
parent
f067fb0aef
commit
3ab706cac3
Notes:
sideshowbarker
2024-07-19 02:25:53 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/3ab706cac3f Pull-request: https://github.com/SerenityOS/serenity/pull/3483
1 changed files with 4 additions and 12 deletions
|
@ -289,18 +289,10 @@ pushd "$DIR"
|
|||
else
|
||||
mkdir -p Cache/
|
||||
# We *most definitely* don't need debug symbols in the linker/compiler.
|
||||
# This cuts the uncompressed size from 1.2 GiB per Toolchain down to about 250 MiB.
|
||||
pushd "Local/libexec/gcc/i686-pc-serenity/${GCC_VERSION}"
|
||||
for binary in cc1 cc1plus lto1; do
|
||||
echo "Before: $(du -h "${binary}")"
|
||||
strip "${binary}"
|
||||
echo "After: $(du -h "${binary}")"
|
||||
done
|
||||
popd
|
||||
binary=Local/bin/i686-pc-serenity-lto-dump
|
||||
echo "Before: $(du -h "${binary}")"
|
||||
strip "${binary}"
|
||||
echo "After: $(du -h "${binary}")"
|
||||
# This cuts the uncompressed size from 1.2 GiB per Toolchain down to about 190 MiB.
|
||||
echo "Before: $(du -sh Local)"
|
||||
find Local/ -type f -executable ! -name '*.la' ! -name '*.sh' ! -name 'mk*' -exec strip {} +
|
||||
echo "After: $(du -sh Local)"
|
||||
tar czf "Cache/ToolchainLocal_${DEPS_HASH}.tar.gz" Local/
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue