From 412b2ef851516c1de8ba5006ddd284192cbcaf9b Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Sun, 8 Jun 2025 17:32:05 +0200 Subject: tests --- build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'build.sh') 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 ;; *) -- cgit v1.2.3