[sancov] workaround for absence of weak symbols on win

llvm-svn: 291071
This commit is contained in:
Mike Aizatsky 2017-01-05 03:48:20 +00:00
parent bbb82ca4e6
commit 078d716d4c
1 changed files with 1 additions and 2 deletions

View File

@ -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