[compiler-rt] r208575 - [ASan tests] Don't define __asan_default_options in tests on Windows as it is not supported

Timur Iskhodzhanov timurrrr at google.com
Mon May 12 08:12:44 PDT 2014


Author: timurrrr
Date: Mon May 12 10:12:44 2014
New Revision: 208575

URL: http://llvm.org/viewvc/llvm-project?rev=208575&view=rev
Log:
[ASan tests] Don't define __asan_default_options in tests on Windows as it is not supported

Modified:
    compiler-rt/trunk/lib/asan/tests/asan_noinst_test.cc

Modified: compiler-rt/trunk/lib/asan/tests/asan_noinst_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_noinst_test.cc?rev=208575&r1=208574&r2=208575&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_noinst_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_noinst_test.cc Mon May 12 10:12:44 2014
@@ -30,12 +30,14 @@
 // in this test. The static runtime library is linked explicitly (without
 // -fsanitize=address), thus the interceptors do not work correctly on OS X.
 
+#if !defined(_WIN32)
 extern "C" {
 // Set specific ASan options for uninstrumented unittest.
 const char* __asan_default_options() {
   return "allow_reexec=0";
 }
 }  // extern "C"
+#endif
 
 // Make sure __asan_init is called before any test case is run.
 struct AsanInitCaller {





More information about the llvm-commits mailing list