[compiler-rt] Do not redefine builtins on Windows

Build bots are still failing, and getting it to work on Windows should
be done in a separate patch, should this even be technically feasible.

 | lld-link: error:
 | stage2_win_x64/obj/compiler-rt/lib/asan/asan_shared_library.asan_activation.obj:
 | memcpy should not refer to special section 0
This commit is contained in:
Marco Elver 2023-06-06 17:31:19 +02:00
parent a963dbb5ac
commit caa2c1bacb

View File

@ -15,7 +15,7 @@
#define SANITIZER_REDEFINE_BUILTINS_H
// The asm hack only works with GCC and Clang.
#if !defined(_MSC_VER) || defined(__clang__)
#if !defined(_MSC_VER)
asm("memcpy = __sanitizer_internal_memcpy");
asm("memmove = __sanitizer_internal_memmove");
@ -46,7 +46,7 @@ using unordered_set = Define_SANITIZER_COMMON_NO_REDEFINE_BUILTINS_in_cpp_file;
using vector = Define_SANITIZER_COMMON_NO_REDEFINE_BUILTINS_in_cpp_file;
} // namespace std
#endif // !_MSC_VER || __clang__
#endif // !_MSC_VER
#endif // SANITIZER_REDEFINE_BUILTINS_H
#endif // SANITIZER_COMMON_NO_REDEFINE_BUILTINS