summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-06-08 17:32:05 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-06-08 17:32:05 +0200
commit412b2ef851516c1de8ba5006ddd284192cbcaf9b (patch)
treee8b68d60125bf89e375ec9acc4e7833825abbfaa /build.sh
parent6dd73982c514445c4d2a4787c37666d0812a3dad (diff)
tests
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index 1fbf82c..5ba1fb6 100755
--- a/build.sh
+++ b/build.sh
@@ -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
;;
*)