forked from OSchip/llvm-project
[sancov] workaround for absence of weak symbols on win
llvm-svn: 291071
This commit is contained in:
parent
bbb82ca4e6
commit
078d716d4c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue