[compiler-rt] r190597 - [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.
Alexander Potapenko
glider at google.com
Thu Sep 12 02:46:56 PDT 2013
Author: glider
Date: Thu Sep 12 04:46:56 2013
New Revision: 190597
URL: http://llvm.org/viewvc/llvm-project?rev=190597&view=rev
Log:
[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.
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=190597&r1=190596&r2=190597&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/asan/tests/CMakeLists.txt Thu Sep 12 04:46:56 2013
@@ -127,10 +127,20 @@ set_target_properties(AsanUnitTests PROP
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
More information about the llvm-commits
mailing list