added strip_exec.sh
This commit is contained in:
parent
baf45a4b10
commit
f884925788
@ -7,6 +7,8 @@
|
|||||||
+ Added functions:
|
+ Added functions:
|
||||||
+ `file_copy_default_if_not_present()`
|
+ `file_copy_default_if_not_present()`
|
||||||
+ `replace_var_value_in_script()`
|
+ `replace_var_value_in_script()`
|
||||||
|
+ Added task scripts:
|
||||||
|
+ `strip_exec.sh` - enabled in default config in task `build_exec`
|
||||||
|
|
||||||
## 2.2.4
|
## 2.2.4
|
||||||
+ *default config*: C standard changed to C99
|
+ *default config*: C standard changed to C99
|
||||||
|
|||||||
4
default_tasks/strip_exec.sh
Normal file
4
default_tasks/strip_exec.sh
Normal 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"
|
||||||
@ -73,7 +73,7 @@ case "$TASK" in
|
|||||||
LINKER_ARGS="$CPP_ARGS $LINKER_LIBS"
|
LINKER_ARGS="$CPP_ARGS $LINKER_LIBS"
|
||||||
PRE_TASK_SCRIPT=""
|
PRE_TASK_SCRIPT=""
|
||||||
TASK_SCRIPT="@cbuild/default_tasks/build_exec.sh"
|
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
|
# creates executable with debug info and no optimizations
|
||||||
build_exec_dbg)
|
build_exec_dbg)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user