[sancov] workaround for absence of weak symbols on win

llvm-svn: 291076
This commit is contained in:
Mike Aizatsky 2017-01-05 04:18:02 +00:00
parent 9c5534ceb1
commit 3fd897dc32
1 changed files with 2 additions and 0 deletions

View File

@ -60,12 +60,14 @@ const char* __sancov_default_options() { return ""; }
#pragma comment(linker, "/alternatename:__asan_default_options=__asan_default_default_options") // NOLINT
#pragma comment(linker, "/alternatename:__asan_default_suppressions=__asan_default_default_suppressions") // NOLINT
#pragma comment(linker, "/alternatename:__asan_on_error=__asan_default_on_error") // NOLINT
#pragma comment(linker, "/alternatename:__sancov_default_options=__sancov_default_default_options") // NOLINT
#else
#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
#pragma comment(linker, "/alternatename:___asan_default_suppressions=___asan_default_default_suppressions") // NOLINT
#pragma comment(linker, "/alternatename:___asan_on_error=___asan_default_on_error") // NOLINT
#pragma comment(linker, "/alternatename:___sancov_default_options=___sancov_default_default_options") // NOLINT
#endif
// }}}
} // extern "C"