[llvm] r309980 - Fix llvm-for-windows-on-linux build after LLVM r272701.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 3 13:10:47 PDT 2017
Author: nico
Date: Thu Aug 3 13:10:47 2017
New Revision: 309980
URL: http://llvm.org/viewvc/llvm-project?rev=309980&view=rev
Log:
Fix llvm-for-windows-on-linux build after LLVM r272701.
The file is called "intrin.h". When building targeting Windows on a Linux
system, with the SDK mounted in a case-insensitive file system, "Intrin.h" will
miss clang's intrin.h header (because that's not in a case-insensitive file
system) but then find intrin.h in the Microsoft SDK. clang can't handle the
SDK's intrin.h.
https://reviews.llvm.org/D36281
Modified:
llvm/trunk/lib/Support/Atomic.cpp
Modified: llvm/trunk/lib/Support/Atomic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Atomic.cpp?rev=309980&r1=309979&r2=309980&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Atomic.cpp (original)
+++ llvm/trunk/lib/Support/Atomic.cpp Thu Aug 3 13:10:47 2017
@@ -17,9 +17,9 @@
using namespace llvm;
#if defined(_MSC_VER)
-#include <Intrin.h>
+#include <intrin.h>
-// We must include windows.h after Intrin.h.
+// We must include windows.h after intrin.h.
#include <windows.h>
#undef MemoryFence
#endif
More information about the llvm-commits
mailing list