added strip_exec.sh

This commit is contained in:
Timerix 2025-11-09 23:35:12 +05:00
parent baf45a4b10
commit f884925788
3 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,8 @@
+ Added functions:
+ `file_copy_default_if_not_present()`
+ `replace_var_value_in_script()`
+ Added task scripts:
+ `strip_exec.sh` - enabled in default config in task `build_exec`
## 2.2.4
+ *default config*: C standard changed to C99

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
exe_path="$OUTDIR/$EXEC_FILE"
myprint "${BLUE}stripping symbols from ${WHITE}$exe_path"
strip -s "$exe_path"

View File

@ -73,7 +73,7 @@ case "$TASK" in
LINKER_ARGS="$CPP_ARGS $LINKER_LIBS"
PRE_TASK_SCRIPT=""
TASK_SCRIPT="@cbuild/default_tasks/build_exec.sh"
POST_TASK_SCRIPT=""
POST_TASK_SCRIPT="@cbuild/default_tasks/strip_exec.sh"
;;
# creates executable with debug info and no optimizations
build_exec_dbg)