Allow finer grain tracing for debug builds
This commit is contained in:
parent
08de77d475
commit
1460f90720
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue