Add back minimize profile

This commit is contained in:
Michael Mikovsky
2026-04-25 11:36:10 -06:00
parent 6bdf59c5c9
commit 792eb28457
2 changed files with 17 additions and 5 deletions
+5 -5
View File
@@ -8,9 +8,9 @@
set -e
OBFUSCATION_KEY=kjwerkwerkjbwejehrwhje \
cargo build --profile minimize -p ush-payload $@
cargo build --profile minimize -p treetest $@
export BINARY=./target/minimize/ush-payload
export BINARY=./target/minimize/treetest
declare -a headers=(
".gnu_debuglink" # - Debug information link
@@ -28,9 +28,9 @@ declare -a headers=(
for section in "${headers[@]}"
do
strip --remove-section="$section" $BINARY
echo "Removed section header $section"
# echo "Removed section header $section"
done
echo "## STARTING "
echo "Binary size: $(wc -c $BINARY)"
$BINARY
# $BINARY