projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7137da
)
scudo: Only add no-omit-frame-pointer flags when the compiler supports them
author
Tom Stellard
<tstellar@redhat.com>
Thu, 9 Sep 2021 04:10:38 +0000
(21:10 -0700)
committer
Tom Stellard
<tstellar@redhat.com>
Thu, 9 Sep 2021 04:10:40 +0000
(21:10 -0700)
Reviewed By: cryptoad
Differential Revision: https://reviews.llvm.org/D109196
compiler-rt/lib/scudo/standalone/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/scudo/standalone/CMakeLists.txt
b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
index
053ab2f
..
739f131
100644
(file)
--- a/
compiler-rt/lib/scudo/standalone/CMakeLists.txt
+++ b/
compiler-rt/lib/scudo/standalone/CMakeLists.txt
@@
-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)