summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-05-08 14:53:59 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-05-08 14:53:59 +0000
commitfddadefc33491d7ebea30ecfa6bd30ddf81025df (patch)
treeaa7d2902e399a6f41aa7bb7f99711122402ce709
parent649263626a7481ad214c23e724cd8d2fb263c3cb (diff)
downloadbcm5719-llvm-fddadefc33491d7ebea30ecfa6bd30ddf81025df.tar.gz
bcm5719-llvm-fddadefc33491d7ebea30ecfa6bd30ddf81025df.zip
[ASan tests] Auto-define ASAN_NEEDS_SEGV rather than hardcode it in cmake
llvm-svn: 208322
-rw-r--r--compiler-rt/lib/asan/tests/CMakeLists.txt1
-rw-r--r--compiler-rt/lib/asan/tests/asan_test_config.h6
2 files changed, 5 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/tests/CMakeLists.txt b/compiler-rt/lib/asan/tests/CMakeLists.txt
index 27bed9b9688..05ef5d05250 100644
--- a/compiler-rt/lib/asan/tests/CMakeLists.txt
+++ b/compiler-rt/lib/asan/tests/CMakeLists.txt
@@ -36,7 +36,6 @@ append_if(COMPILER_RT_HAS_WNO_VARIADIC_MACROS_FLAG -Wno-variadic-macros ASAN_UNI
list(APPEND ASAN_UNITTEST_COMMON_CFLAGS
-DASAN_HAS_BLACKLIST=1
-DASAN_HAS_EXCEPTIONS=1
- -DASAN_NEEDS_SEGV=1
-DASAN_UAR=0)
set(ASAN_BLACKLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/asan_test.ignore")
diff --git a/compiler-rt/lib/asan/tests/asan_test_config.h b/compiler-rt/lib/asan/tests/asan_test_config.h
index 6eb33ce4431..eee0ab8cb7b 100644
--- a/compiler-rt/lib/asan/tests/asan_test_config.h
+++ b/compiler-rt/lib/asan/tests/asan_test_config.h
@@ -44,7 +44,11 @@ using std::map;
#endif
#ifndef ASAN_NEEDS_SEGV
-# error "please define ASAN_NEEDS_SEGV"
+# if defined(_WIN32)
+# define ASAN_NEEDS_SEGV 0
+# else
+# define ASAN_NEEDS_SEGV 1
+# endif
#endif
#ifndef ASAN_AVOID_EXPENSIVE_TESTS
OpenPOWER on IntegriCloud