diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -40,11 +40,18 @@ fi case "$BUILD_TYPE" in "normal") CFLAGS+=" -ggdb -fno-omit-frame-pointer -O2 -DDEBUG_INTERNAL" +# -pg # for gprof # -fsanitize=address,undefined,alignment,object-size,unreachable -fno-omit-frame-pointer" ;; "release") CFLAGS+=" -s -Wl,--strip-all -O2" ;; + "profile") + CFLAGS+=" -g -O2 -fprofile-generate" + ;; + "profile_release") + CFLAGS+=" -s -Wl,--strip-all -O2 -fprofile-use" + ;; "debug") CFLAGS+=" -g -O0" LDFLAGS+=" -fno-pie -no-pie" |
