Added a build postfix for stripping the binaries.

This commit is contained in:
Relintai 2021-03-24 09:49:06 +01:00
parent 382d1079f6
commit 18b13ce815
2 changed files with 10 additions and 0 deletions

View File

@ -171,6 +171,12 @@ I ran into this issue while building on a raspberry pi 4 with the x11 platform.
``` scons bel_latomic -j4 ```
##### strip
Appends `debug_symbols=no` to the build command, which will strip the resulting binary from debug symbols.
``` scons bel_strip -j4 ```
#### Patches
The build script can apply optional patches. They work similarly to build words, except this time the word has to start with p, and then it has to be followed by the desired patch characters.

View File

@ -361,6 +361,10 @@ if len(sys.argv) > 1:
build_string += 'LINKFLAGS="-latomic"'
build_string += ' '
if 'strip' in arg_split:
build_string += 'debug_symbols=no'
build_string += ' '
target = ' '
if 'E' in arg: