[llvm-commits] [compiler-rt] r162750 - /compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
Alexey Samsonov
samsonov at google.com
Tue Aug 28 05:38:17 PDT 2012
Author: samsonov
Date: Tue Aug 28 07:38:17 2012
New Revision: 162750
URL: http://llvm.org/viewvc/llvm-project?rev=162750&view=rev
Log:
[ASan] CMake build: share more compile flags between instrumented and non-instrumented tests
Modified:
compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
Modified: compiler-rt/trunk/lib/asan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/CMakeLists.txt?rev=162750&r1=162749&r2=162750&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/asan/tests/CMakeLists.txt Tue Aug 28 07:38:17 2012
@@ -15,9 +15,16 @@
include_directories(../..)
set(ASAN_UNITTEST_COMMON_CFLAGS
+ # Use -D instead of definitions to please custom compile command.
+ -DASAN_HAS_BLACKLIST=1
+ -DASAN_HAS_EXCEPTIONS=1
+ -DASAN_NEEDS_SEGV=1
+ -DASAN_UAR=0
-Wall
-Wno-format
-fvisibility=hidden
+ -g
+ -O2
)
# Support 64-bit and 32-bit builds.
if(LLVM_BUILD_32_BITS)
@@ -38,13 +45,7 @@
${ASAN_UNITTEST_COMMON_CFLAGS}
${ASAN_GTEST_INCLUDE_CFLAGS}
-faddress-sanitizer
- -O2
- -g
-mllvm "-asan-blacklist=${CMAKE_CURRENT_SOURCE_DIR}/asan_test.ignore"
- -DASAN_HAS_BLACKLIST=1
- -DASAN_HAS_EXCEPTIONS=1
- -DASAN_NEEDS_SEGV=1
- -DASAN_UAR=0
)
add_custom_target(AsanUnitTests)
More information about the llvm-commits
mailing list