summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-04-06 20:05:32 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-04-06 20:05:32 +0200
commitdebadc464578ac2be6b75a95f6ea6f95bfecba79 (patch)
tree0d27a48974ccb36f5fde9f945174880a37746da5 /build.sh
parent1372919415b23a9a596ca7211fd432328b2ac0cc (diff)
cleanup
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
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"