From d45fbf8d2e1adcb35043dfc9e06eae3ccfdf596e Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Mon, 7 Apr 2025 19:47:27 +0200 Subject: cleanup and optimization tests, unfortunately nothing great. --- build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 6ab9fc1..3e878d3 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,8 @@ PROJECT_NAME="mknes" # Change this for each new project # Base configuration common to all builds CFLAGS="-std=gnu11 " CFLAGS+="-mavx2 -mbmi2 -march=native " -CFLAGS+="-mfunction-return=keep -mindirect-branch=keep " +CFLAGS+="-mfunction-return=keep " +CFLAGS+="-mindirect-branch=keep " CFLAGS+="-fwrapv -ffast-math -fno-trapping-math -fwhole-program " CFLAGS+="-fno-stack-protector -fno-PIE -no-pie -fno-strict-aliasing -ffunction-sections -fdata-sections " # CFLAGS+="-fno-exceptions -fno-rtti -fno-use-cxa-atexit " @@ -37,8 +38,8 @@ fi case "$BUILD_TYPE" in "normal") - CFLAGS+=" -g -O2 -DDEBUG_INTERNAL" -# -fsanitize=address,undefined -fno-omit-frame-pointer" + CFLAGS+=" -ggdb -fno-omit-frame-pointer -O2 -DDEBUG_INTERNAL" +# -fsanitize=address,undefined,alignment,object-size,unreachable -fno-omit-frame-pointer" ;; "release") CFLAGS+=" -s -Wl,--strip-all -O2" -- cgit v1.2.3