Skip to content

Commit

Permalink
[compiler-rt] Do not redefine builtins in MinGW configs either
Browse files Browse the repository at this point in the history
This fixes broken mingw builds since
0a71e25. Clang-cl style builds
were broken similarly, but were fixed in
caa2c1b, with the comment
"Do not redefine builtins on Windows", even if the fix only affected
Clang-cl style builds.
  • Loading branch information
mstorsjo committed Jun 7, 2023
1 parent 9471637 commit 6853c49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define SANITIZER_REDEFINE_BUILTINS_H

// The asm hack only works with GCC and Clang.
#if !defined(_MSC_VER)
#if !defined(_WIN32)

asm("memcpy = __sanitizer_internal_memcpy");
asm("memmove = __sanitizer_internal_memmove");
Expand Down Expand Up @@ -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
#endif // !_WIN32

#endif // SANITIZER_REDEFINE_BUILTINS_H
#endif // SANITIZER_COMMON_NO_REDEFINE_BUILTINS

0 comments on commit 6853c49

Please sign in to comment.