mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 07:31:28 +00:00
[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:
parent
a963dbb5ac
commit
caa2c1bacb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user