From 1d5cc7bed35dfcb6932e587157b50f0cf6c19175 Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Mon, 12 May 2014 15:12:44 +0000 Subject: [PATCH] [ASan tests] Don't define __asan_default_options in tests on Windows as it is not supported git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208575 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/tests/asan_noinst_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/asan/tests/asan_noinst_test.cc b/lib/asan/tests/asan_noinst_test.cc index 52254f1c6..8d2a6ac3d 100644 --- a/lib/asan/tests/asan_noinst_test.cc +++ b/lib/asan/tests/asan_noinst_test.cc @@ -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 { -- 2.11.4.GIT