From cdfc174d230c877c83f55739163fb8eefb5bf134 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 3 Aug 2017 20:10:47 +0000 Subject: [PATCH] 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309980 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Atomic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Support/Atomic.cpp b/lib/Support/Atomic.cpp index 55910c489fa..7328a93052c 100644 --- a/lib/Support/Atomic.cpp +++ b/lib/Support/Atomic.cpp @@ -17,9 +17,9 @@ using namespace llvm; #if defined(_MSC_VER) -#include +#include -// We must include windows.h after Intrin.h. +// We must include windows.h after intrin.h. #include #undef MemoryFence #endif -- 2.50.1