summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-09-12 09:46:56 +0000
committerAlexander Potapenko <glider@google.com>2013-09-12 09:46:56 +0000
commit9caa10d0c78989c149ef9732c6a888ba170c76b3 (patch)
tree96335489f5b095d1698790152a6e6a828cb9e481
parent79d98a851b08b560531fc0d7004231498b50e43f (diff)
downloadbcm5719-llvm-9caa10d0c78989c149ef9732c6a888ba170c76b3.tar.gz
bcm5719-llvm-9caa10d0c78989c149ef9732c6a888ba170c76b3.zip
[ASan] Do not build asan_fake_stack_test.cc on OSX until https://code.google.com/p/address-sanitizer/issues/detail?id=222 is fixed.
llvm-svn: 190597
-rw-r--r--compiler-rt/lib/asan/tests/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/tests/CMakeLists.txt b/compiler-rt/lib/asan/tests/CMakeLists.txt
index f0b8b45e4fd..5e36416473f 100644
--- a/compiler-rt/lib/asan/tests/CMakeLists.txt
+++ b/compiler-rt/lib/asan/tests/CMakeLists.txt
@@ -127,10 +127,20 @@ set_target_properties(AsanUnitTests PROPERTIES FOLDER "ASan unit tests")
add_custom_target(AsanBenchmarks)
set_target_properties(AsanBenchmarks PROPERTIES FOLDER "Asan benchmarks")
+if (NOT APPLE)
+# Do not build asan_fake_stack_test.cc on OS X, since it requires exposing
+# additional functions from the runtime.
+# See also https://code.google.com/p/address-sanitizer/issues/detail?id=222
set(ASAN_NOINST_TEST_SOURCES
asan_fake_stack_test.cc
asan_noinst_test.cc
asan_test_main.cc)
+else()
+set(ASAN_NOINST_TEST_SOURCES
+ asan_noinst_test.cc
+ asan_test_main.cc)
+endif()
+
set(ASAN_INST_TEST_SOURCES
asan_globals_test.cc
asan_test.cc
OpenPOWER on IntegriCloud