Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 460681e

Browse files
General-BeckTriplEight
authored andcommitted
perform stripping during build (#10208)
* perform stripping during build * var RUSTFLAGS
1 parent 2a7ed45 commit 460681e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

scripts/gitlab/build-unix.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ echo "CARGO_HOME: " $CARGO_HOME
99
echo "CARGO_TARGET: " $CARGO_TARGET
1010
echo "CC: " $CC
1111
echo "CXX: " $CXX
12+
#strip ON
13+
export RUSTFLAGS=" -C link-arg=-s"
1214

1315
echo "_____ Building target: "$CARGO_TARGET" _____"
1416
if [ "${CARGO_TARGET}" = "armv7-linux-androideabi" ]
@@ -41,16 +43,6 @@ else
4143
cp -v ../../target/$CARGO_TARGET/release/whisper ./whisper
4244
fi
4345

44-
45-
# stripping can also be done on release build time
46-
# export RUSTFLAGS="${RUSTFLAGS} -C link-arg=-s"
47-
if [ "${CARGO_TARGET}" = "armv7-linux-androideabi" ]
48-
then
49-
arm-linux-androideabi-strip -v ./*
50-
else
51-
strip -v ./*
52-
fi
53-
5446
echo "_____ Calculating checksums _____"
5547
for binary in $(ls)
5648
do

0 commit comments

Comments
 (0)