[asan] trying to fix the windows build
authorKostya Serebryany <kcc@google.com>
Fri, 15 Jul 2016 23:13:03 +0000 (23:13 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 15 Jul 2016 23:13:03 +0000 (23:13 +0000)
llvm-svn: 275644

compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/test/asan/TestCases/Linux/memmem_test.cc [moved from compiler-rt/test/asan/TestCases/memmem_test.cc with 100% similarity]

index 1c7e46e..a4afc0f 100644 (file)
@@ -83,7 +83,8 @@
 #define SANITIZER_INTERCEPT_MEMMOVE 1
 #define SANITIZER_INTERCEPT_MEMCPY 1
 #define SANITIZER_INTERCEPT_MEMCMP 1
-#define SANITIZER_INTERCEPT_MEMMEM 1
+// FIXME: enable memmem on Windows.
+#define SANITIZER_INTERCEPT_MEMMEM SI_NOT_WINDOWS
 // The function memchr() contains a jump in the first 6 bytes
 // that is problematic to intercept correctly on Win64.
 // Disable memchr() interception for Win64.