From debadc464578ac2be6b75a95f6ea6f95bfecba79 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Sun, 6 Apr 2025 20:05:32 +0200 Subject: cleanup --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index b548675..aed20c0 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ PROJECT_NAME="mknes" # Change this for each new project # Base configuration common to all builds CFLAGS="-std=gnu11 " -CFLAGS+="-mavx2 -mbmi2 -mtune=native -mfunction-return=keep -mindirect-branch=keep " +CFLAGS+="-mavx2 -mbmi2 -march=native -mfunction-return=keep -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 " @@ -40,7 +40,7 @@ case "$BUILD_TYPE" in # -fsanitize=address,undefined -fno-omit-frame-pointer" ;; "release") - CFLAGS+=" -s -O2" + CFLAGS+=" -s -Wl,--strip-all -O2" ;; "debug") CFLAGS+=" -g -O0" -- cgit v1.2.3