Do not define ___asan_default_options on Windows.
authorAlexander Potapenko <glider@google.com>
Tue, 29 May 2012 08:26:18 +0000 (08:26 +0000)
committerAlexander Potapenko <glider@google.com>
Tue, 29 May 2012 08:26:18 +0000 (08:26 +0000)
llvm-svn: 157603

compiler-rt/lib/asan/asan_interface.h

index d678172..a15b92d 100644 (file)
@@ -165,8 +165,11 @@ extern "C" {
   // Prints accumulated stats to stderr. Used for debugging.
   void __asan_print_accumulated_stats()
       ASAN_INTERFACE_FUNCTION_ATTRIBUTE;
+#if !defined(_WIN32)
+  // We do not need to redefine the defaults right now on Windows.
   char *__asan_default_options
       ASAN_WEAK_ATTRIBUTE;
+#endif
 }  // namespace
 
 #undef ASAN_INTERFACE_FUNCTION_ATTRIBUTE