diff options
| author | Alexey Samsonov <samsonov@google.com> | 2012-10-19 15:18:14 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2012-10-19 15:18:14 +0000 |
| commit | 521309294fbe1789c6c45b8dcb91f77c49cf9c30 (patch) | |
| tree | 5de614ef8b7dc2965d0ff8fafd909a41b9baafaf | |
| parent | 0fea04509a6416f27b8237cf7df5705678686cc3 (diff) | |
| download | bcm5719-llvm-521309294fbe1789c6c45b8dcb91f77c49cf9c30.tar.gz bcm5719-llvm-521309294fbe1789c6c45b8dcb91f77c49cf9c30.zip | |
[ASan] instrumented asan unit tests should depend on blacklist file
llvm-svn: 166282
| -rw-r--r-- | compiler-rt/lib/asan/tests/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/tests/CMakeLists.txt b/compiler-rt/lib/asan/tests/CMakeLists.txt index 8c81c4a43d2..af69579d9b6 100644 --- a/compiler-rt/lib/asan/tests/CMakeLists.txt +++ b/compiler-rt/lib/asan/tests/CMakeLists.txt @@ -61,11 +61,13 @@ set(ASAN_GTEST_INCLUDE_CFLAGS -D__STDC_LIMIT_MACROS ) +set(ASAN_BLACKLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/asan_test.ignore") + set(ASAN_UNITTEST_INSTRUMENTED_CFLAGS ${ASAN_UNITTEST_COMMON_CFLAGS} ${ASAN_GTEST_INCLUDE_CFLAGS} -faddress-sanitizer - -mllvm "-asan-blacklist=${CMAKE_CURRENT_SOURCE_DIR}/asan_test.ignore" + -mllvm "-asan-blacklist=${ASAN_BLACKLIST_FILE}" -mllvm -asan-stack=1 -mllvm -asan-globals=1 -mllvm -asan-mapping-scale=0 # default will be used @@ -128,7 +130,7 @@ if("${CMAKE_HOST_SYSTEM}" STREQUAL "${CMAKE_SYSTEM}" AND UNIX AND NOT ANDROID) -c -o "${output_obj}" ${CMAKE_CURRENT_SOURCE_DIR}/${source} MAIN_DEPENDENCY ${source} - DEPENDS clang ${ASAN_RUNTIME_LIBRARIES} ${ARGN} + DEPENDS clang ${ASAN_RUNTIME_LIBRARIES} ${ASAN_BLACKLIST_FILE} ${ARGN} ) endfunction() |

