Skip to content

Commit 3b8ea11

Browse files
committed
Strip symbols from distributed binaries
The rust compiler apparently doesn't do that even for release builds. This makes the binaries over 40% smaller! Thanks @elichai for brining this to my attention.
1 parent 98dcc87 commit 3b8ea11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ if [ -z "$SKIP_BUILD" ]; then
5050
cargo +$toolchain build --release --target $platform --no-default-features --features "$features"
5151
mkdir -p dist/$name
5252
mv target/$platform/release/bwt$ext dist/$name
53+
strip dist/$name/bwt$ext
5354
cp README.md LICENSE dist/$name
5455
pack $pname $name
5556
}

0 commit comments

Comments
 (0)