[llvm-commits] [compiler-rt] r167584 - /compiler-rt/trunk/CMakeLists.txt
Alexey Samsonov
samsonov at google.com
Thu Nov 8 06:49:28 PST 2012
Author: samsonov
Date: Thu Nov 8 08:49:28 2012
New Revision: 167584
URL: http://llvm.org/viewvc/llvm-project?rev=167584&view=rev
Log:
[Sanitizer] Build all sanitizer runtime libraries with debug info (with -gline-tables-only, if it's available)
Modified:
compiler-rt/trunk/CMakeLists.txt
Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=167584&r1=167583&r2=167584&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Thu Nov 8 08:49:28 2012
@@ -72,6 +72,14 @@
if(NOT WIN32)
list(APPEND SANITIZER_COMMON_CFLAGS -fvisibility=hidden)
endif()
+# Build sanitizer runtimes with debug info.
+check_cxx_compiler_flag(-gline-tables-only SUPPORTS_GLINE_TABLES_ONLY_FLAG)
+if(SUPPORTS_GLINE_TABLES_ONLY_FLAG)
+ list(APPEND SANITIZER_COMMON_CFLAGS -gline-tables-only)
+else()
+ list(APPEND SANITIZER_COMMON_CFLAGS -g)
+endif()
+# Warnings suppressions.
check_cxx_compiler_flag(-Wno-variadic-macros SUPPORTS_NO_VARIADIC_MACROS_FLAG)
if(SUPPORTS_NO_VARIADIC_MACROS_FLAG)
list(APPEND SANITIZER_COMMON_CFLAGS -Wno-variadic-macros)
More information about the llvm-commits
mailing list