Skip to content

Commit

Permalink
strip debug symbols from output binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
p2r3 committed Dec 15, 2024
1 parent 09771a6 commit 16ed530
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autobuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,16 @@ if [ "$target_windows" == true ] || [ "$target_both" == true ]; then
cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll ./win32
cp /usr/lib/gcc/x86_64-w64-mingw32/12-posix/libgcc_s_seh-1.dll ./win32
cp /usr/lib/gcc/x86_64-w64-mingw32/12-posix/libstdc++-6.dll ./win32
# Strip debug symbols
strip ./win32/SppliceCPP.exe
strip ./win32/*.dll
strip ./win32/platforms/*.dll
strip ./win32/imageformats/*.dll
fi

if [ "$target_windows" == false ] || [ "$target_both" == true ]; then
# Strip debug symbols
strip ./linux/SppliceCPP
# Pack with UPX
../deps/shared/upx/upx --best --lzma ./linux/SppliceCPP
fi

0 comments on commit 16ed530

Please sign in to comment.