[compiler-rt] r189010 - [lsan] Build standalone LSan with -fno-rtti.
Sergey Matveev
earthdok at google.com
Thu Aug 22 06:23:22 PDT 2013
Author: smatveev
Date: Thu Aug 22 08:23:22 2013
New Revision: 189010
URL: http://llvm.org/viewvc/llvm-project?rev=189010&view=rev
Log:
[lsan] Build standalone LSan with -fno-rtti.
Fix issue where C code could not be built with -fsanitize=leak.
Modified:
compiler-rt/trunk/lib/lsan/CMakeLists.txt
compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt
Modified: compiler-rt/trunk/lib/lsan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/CMakeLists.txt?rev=189010&r1=189009&r2=189010&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/lsan/CMakeLists.txt Thu Aug 22 08:23:22 2013
@@ -1,7 +1,8 @@
include_directories(..)
set(LSAN_CFLAGS
- ${SANITIZER_COMMON_CFLAGS})
+ ${SANITIZER_COMMON_CFLAGS}
+ -fno-rtti)
set(LSAN_COMMON_SOURCES
lsan_common.cc
Modified: compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt?rev=189010&r1=189009&r2=189010&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt Thu Aug 22 08:23:22 2013
@@ -9,7 +9,7 @@ set(LSAN_TESTS_SRC
lsan_dummy_unittest.cc)
set(LSAN_TESTS_CFLAGS
- ${LSAN_CFLAGS}
+ ${SANITIZER_COMMON_CFLAGS}
${COMPILER_RT_GTEST_INCLUDE_CFLAGS}
-I${COMPILER_RT_SOURCE_DIR}/lib
-I${LSAN_SRC_DIR})
More information about the llvm-commits
mailing list