diff --git a/project.config b/project.config index e0467a1..99d1104 100644 --- a/project.config +++ b/project.config @@ -62,7 +62,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="tasks/strip.sh" ;; # creates executable with debug info and no optimizations build_exec_dbg) diff --git a/tasks/strip.sh b/tasks/strip.sh new file mode 100644 index 0000000..31eb8c8 --- /dev/null +++ b/tasks/strip.sh @@ -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"