History

configure: add -fno-omit-frame-pointer when sanitizers are used

All sanitizers give better reports with frame pointers. And skip adding -fomit-frame-pointer.

Kacper Michajłow committed 1 year ago

Commit 1bed76c1 parent 85ae1051 file · +2 −1Browse files

Unified · Split

configure+2−1
@@ -4653,6 +4653,7 @@ add_sanitizers(){ · 4652 unmodified lines
46534653 for sanitizer; do
46544654 add_sanitizer_flags "$sanitizer"
46554655 done
4656+ add_cflags -fno-omit-frame-pointer
46564657 }
46574658
46584659 case "$toolchain" in
@@ -6216,7 +6217,7 @@ set_default libdir · 1557 unmodified lines
62166217 set_default $PATHS_LIST
62176218 set_default nm
62186219
6219−disabled optimizations || enabled ossfuzz || check_cflags -fomit-frame-pointer
6220+disabled optimizations || enabled ossfuzz || echo "$CFLAGS" | grep -q -- '-fsanitize=' || check_cflags -fomit-frame-pointer
62206221
62216222 enable_weak_pic() {
62226223 disabled pic && return

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t