diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6,6 +6,7 @@ PROJECT_NAME="mknes" # Change this for each new project CC=gcc # Base configuration common to all builds +# CFLAGS="-std=gnu11 -mtune=generic " CFLAGS="-std=gnu11 -mtune=generic " CFLAGS+="-mbmi " CFLAGS+="-mfunction-return=keep -mindirect-branch=keep " @@ -45,8 +46,8 @@ fi case "$BUILD_TYPE" in "normal") CFLAGS+=" -ggdb -fno-omit-frame-pointer -O2 -DDEBUG_INTERNAL" + # CFLAGS+=" -fsanitize=address,undefined,alignment,object-size,unreachable -fno-omit-frame-pointer" # -pg # for gprof -# -fsanitize=address,undefined,alignment,object-size,unreachable -fno-omit-frame-pointer" ;; "release") CFLAGS+=" -s -Wl,--strip-all -O2" |
