diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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" |
