mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Include intrin.h before windows.h as a workaround for the x64 self-host
On x64, windows.h doesn't include intrin.h for intrinsics. It just declares them in the global namespace and uses them, expecting the compiler to lower it as a builtin. We basically need to do this in clang, eventually. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6a914399c9
commit
9331beb910
@ -17,6 +17,7 @@
|
||||
using namespace llvm;
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <Intrin.h>
|
||||
#include <windows.h>
|
||||
#undef MemoryFence
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user