[compiler-rt] 9ee64c3 - scudo: Only add no-omit-frame-pointer flags when the compiler supports them
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 21:10:56 PDT 2021
Author: Tom Stellard
Date: 2021-09-08T21:10:40-07:00
New Revision: 9ee64c374605683ae80b9641d5312a72c2a67336
URL: https://github.com/llvm/llvm-project/commit/9ee64c374605683ae80b9641d5312a72c2a67336
DIFF: https://github.com/llvm/llvm-project/commit/9ee64c374605683ae80b9641d5312a72c2a67336.diff
LOG: scudo: Only add no-omit-frame-pointer flags when the compiler supports them
Reviewed By: cryptoad
Differential Revision: https://reviews.llvm.org/D109196
Added:
Modified:
compiler-rt/lib/scudo/standalone/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
index 053ab2fc4168..739f131bdefd 100644
--- 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)
More information about the llvm-commits
mailing list