1
0
Fork 0

Allow finer grain tracing for debug builds

This commit is contained in:
krcroft 2020-03-18 16:05:34 -07:00 committed by Patryk Obara
parent 08de77d475
commit 1460f90720
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ cxx="clang++${postfix}"
# Flag additions
TYPES+=(debug warnmore profile)
cflags_release=("${cflags[@]}" -Os)
cflags_debug=("${cflags[@]}" -g -Og -fno-omit-frame-pointer)
cflags_debug=("${cflags[@]}" -g -fno-omit-frame-pointer)
cflags_profile=("${cflags_debug[@]}" -fprofile-instr-generate -fcoverage-mapping)
cflags_warnmore=("${cflags_debug[@]}" -Wextra -Wshadow -Wcast-align -Wunused
-Woverloaded-virtual -Wpedantic -Wconversion -Wsign-conversion

View file

@ -9,7 +9,7 @@ ranlib="gcc-ranlib${postfix}"
TYPES+=(debug warnmore profile)
cflags+=(-fstack-protector -fdiagnostics-color=auto)
cflags_debug=("${cflags[@]}" -g -Og -fno-omit-frame-pointer)
cflags_debug=("${cflags[@]}" -g -fno-omit-frame-pointer)
cflags_release=("${cflags[@]}" -Ofast -ffunction-sections -fdata-sections)
cflags_profile=("${cflags_debug[@]}" -pg)
cflags_warnmore=("${cflags_debug[@]}" -pedantic -Wcast-align -Wdouble-promotion