[PATCH] D31376: [sanitizers] Avoid using -fomit-frame-pointer on Darwin

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 10:27:11 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL298859: [sanitizers] Avoid using -fomit-frame-pointer on Darwin (authored by kuba.brecka).

Changed prior to commit:
  https://reviews.llvm.org/D31376?vs=93082&id=93152#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D31376

Files:
  compiler-rt/trunk/CMakeLists.txt


Index: compiler-rt/trunk/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/CMakeLists.txt
+++ compiler-rt/trunk/CMakeLists.txt
@@ -124,7 +124,7 @@
 endif()
 append_list_if(COMPILER_RT_HAS_FNO_BUILTIN_FLAG -fno-builtin SANITIZER_COMMON_CFLAGS)
 append_list_if(COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG -fno-exceptions SANITIZER_COMMON_CFLAGS)
-if(NOT COMPILER_RT_DEBUG)
+if(NOT COMPILER_RT_DEBUG AND NOT APPLE)
   append_list_if(COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG -fomit-frame-pointer SANITIZER_COMMON_CFLAGS)
 endif()
 append_list_if(COMPILER_RT_HAS_FUNWIND_TABLES_FLAG -funwind-tables SANITIZER_COMMON_CFLAGS)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31376.93152.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170327/c9b5e52b/attachment.bin>


More information about the llvm-commits mailing list