Skip to content

Commit

Permalink
scudo: Only add no-omit-frame-pointer flags when the compiler support…
Browse files Browse the repository at this point in the history
…s them

Reviewed By: cryptoad

Differential Revision: https://reviews.llvm.org/D109196
  • Loading branch information
tstellar committed Sep 9, 2021
1 parent f7137da commit 9ee64c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compiler-rt/lib/scudo/standalone/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,11 @@ if (COMPILER_RT_HAS_GWP_ASAN)
RTGwpAsan RTGwpAsanBacktraceLibc RTGwpAsanSegvHandler
RTGwpAsanOptionsParser)

list(APPEND SCUDO_CFLAGS -DGWP_ASAN_HOOKS -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer)
append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer
SCUDO_CFLAGS)
list(APPEND SCUDO_CFLAGS -DGWP_ASAN_HOOKS)

endif()

set(SCUDO_LINK_LIBS)
Expand Down

0 comments on commit 9ee64c3

Please sign in to comment.