[compiler-rt] r364972 - Only use -mno-omit-leaf-frame-pointer with clang builds.
Mitch Phillips via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 14:58:19 PDT 2019
Author: hctim
Date: Tue Jul 2 14:58:19 2019
New Revision: 364972
URL: http://llvm.org/viewvc/llvm-project?rev=364972&view=rev
Log:
Only use -mno-omit-leaf-frame-pointer with clang builds.
Fix build breakage caused by D64085
Modified:
compiler-rt/trunk/lib/scudo/CMakeLists.txt
Modified: compiler-rt/trunk/lib/scudo/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/scudo/CMakeLists.txt?rev=364972&r1=364971&r2=364972&view=diff
==============================================================================
--- compiler-rt/trunk/lib/scudo/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/scudo/CMakeLists.txt Tue Jul 2 14:58:19 2019
@@ -14,8 +14,10 @@ append_list_if(COMPILER_RT_HAS_LIBPTHREA
append_list_if(COMPILER_RT_HAS_LIBLOG log SCUDO_MINIMAL_DYNAMIC_LIBS)
append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -fno-omit-frame-pointer
SCUDO_CFLAGS)
-append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
- -mno-omit-leaf-frame-pointer SCUDO_CFLAGS)
+if (COMPILER_RT_TEST_COMPILER_ID STREQUAL "Clang")
+ append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
+ -mno-omit-leaf-frame-pointer SCUDO_CFLAGS)
+endif()
set(SCUDO_DYNAMIC_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS})
# Use gc-sections by default to avoid unused code being pulled in.
More information about the llvm-commits
mailing list