[PATCH] D109196: scudo: Only add no-omit-frame-pointer flags when the compiler supports them
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 21:11:12 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9ee64c374605: scudo: Only add no-omit-frame-pointer flags when the compiler supports them (authored by tstellar).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109196/new/
https://reviews.llvm.org/D109196
Files:
compiler-rt/lib/scudo/standalone/CMakeLists.txt
Index: compiler-rt/lib/scudo/standalone/CMakeLists.txt
===================================================================
--- compiler-rt/lib/scudo/standalone/CMakeLists.txt
+++ compiler-rt/lib/scudo/standalone/CMakeLists.txt
@@ -124,8 +124,11 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109196.371498.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210909/45f96779/attachment.bin>
More information about the llvm-commits
mailing list