From 078d716d4c2338ceb0e7052ef6dd4fa8fbd39e9b Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Thu, 5 Jan 2017 03:48:20 +0000 Subject: [PATCH] [sancov] workaround for absence of weak symbols on win llvm-svn: 291071 --- compiler-rt/lib/asan/asan_win.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler-rt/lib/asan/asan_win.cc b/compiler-rt/lib/asan/asan_win.cc index 78268d83e539..d472db8ad04a 100644 --- a/compiler-rt/lib/asan/asan_win.cc +++ b/compiler-rt/lib/asan/asan_win.cc @@ -54,8 +54,7 @@ void __sanitizer_default_free_hook(void *ptr) { } const char* __asan_default_default_options() { return ""; } const char* __asan_default_default_suppressions() { return ""; } void __asan_default_on_error() {} -// 64-bit msvc will not prepend an underscore for symbols. -#ifdef _WIN64 +const char* __sancov_default_options() { return ""; } #pragma comment(linker, "/alternatename:__sanitizer_malloc_hook=__sanitizer_default_malloc_hook") // NOLINT #pragma comment(linker, "/alternatename:__sanitizer_free_hook=__sanitizer_default_free_hook") // NOLINT #pragma comment(linker, "/alternatename:__asan_default_options=__asan_default_default_options") // NOLINT