[llvm-commits] [compiler-rt] r166282 - /compiler-rt/trunk/lib/asan/tests/CMakeLists.txt

Alexey Samsonov samsonov at google.com
Fri Oct 19 08:18:14 PDT 2012


Author: samsonov
Date: Fri Oct 19 10:18:14 2012
New Revision: 166282

URL: http://llvm.org/viewvc/llvm-project?rev=166282&view=rev
Log:
[ASan] instrumented asan unit tests should depend on blacklist file

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=166282&r1=166281&r2=166282&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/asan/tests/CMakeLists.txt Fri Oct 19 10:18:14 2012
@@ -61,11 +61,13 @@
   -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 @@
               -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()
 





More information about the llvm-commits mailing list