Set "-fno-omit-frame-pointer" flag to the sanitize builds to provide complete backtrace (because sanitizer's runtime uses fast frame-pointer-based unwinding)
@@ -547,8 +547,12 @@ module BASE_UNIT {
LDFLAGS+=-fprofile-instr-generate -fcoverage-mapping
}
- when ($SANITIZER_TYPE && $SANITIZER_TYPE == "pg") {
- CFLAGS+=-fno-omit-frame-pointer -Dpg_sanitizer_enabled
+ when ($SANITIZER_TYPE) {
+ CFLAGS+=-fno-omit-frame-pointer
+
+ when ($SANITIZER_TYPE == "pg") {
+ CFLAGS+=-Dpg_sanitizer_enabled
+ }
}
when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") {
