diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -6,8 +6,8 @@ PROJECT_NAME="mknes" # Change this for each new project CC=gcc # Base configuration common to all builds -CFLAGS="-std=gnu11 -mtune=generic " -CFLAGS+="-mbmi " +CFLAGS="-std=gnu11 -mtune=generic -fdump-tree-alias " +CFLAGS+="-mbmi -fno-jump-tables -fno-argument-alias " CFLAGS+="-mfunction-return=keep -mindirect-branch=keep " CFLAGS+="-fwrapv -ffast-math -fno-trapping-math -fvisibility=hidden " CFLAGS+="-fno-stack-protector -fno-PIE -no-pie -fcf-protection=none -ffunction-sections -fdata-sections " @@ -56,7 +56,8 @@ case "$BUILD_TYPE" in CFLAGS+="-O2 -fprofile-generate -ftest-coverage " ;; "profile_release") - CFLAGS+="-s -Wl,--strip-all -O2 -fprofile-use " + # CFLAGS+="-s -Wl,--strip-all -O2 -fprofile-use " + CFLAGS+="-O2 -fprofile-use " ;; "debug") CFLAGS+="-g -O0 " @@ -68,7 +69,7 @@ case "$BUILD_TYPE" in ;; "clean") - rm -f *.gcda *.gcno *.gcov + rm -f *.gcda *.gcno *.gcov perf.data* *.alias exit 0 ;; *) |
