[llvm] cdbd299 - [Support] Fix building for mingw on a case sensitive file system

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 19 14:41:44 PDT 2020


Author: Martin Storsjö
Date: 2020-06-20T00:39:22+03:00
New Revision: cdbd299800806f5c4569da160c3b80d443232f09

URL: https://github.com/llvm/llvm-project/commit/cdbd299800806f5c4569da160c3b80d443232f09
DIFF: https://github.com/llvm/llvm-project/commit/cdbd299800806f5c4569da160c3b80d443232f09.diff

LOG: [Support] Fix building for mingw on a case sensitive file system

This fixes cross building on a case sensitive file system after
2e613d2ded2c465bd06bd3cac30ffb4576bf72cc. (The official Windows
SDKs don't have self-consistent casing and can't be used as such on
case sentisive file systems without case fixups, while mingw headers
consistently use lower case.)

Added: 
    

Modified: 
    llvm/lib/Support/Windows/Program.inc

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc
index 70b0714d1808..9fe05d24ec2e 100644
--- a/llvm/lib/Support/Windows/Program.inc
+++ b/llvm/lib/Support/Windows/Program.inc
@@ -18,7 +18,7 @@
 #include "llvm/Support/Windows/WindowsSupport.h"
 #include "llvm/Support/WindowsError.h"
 #include "llvm/Support/raw_ostream.h"
-#include <Psapi.h>
+#include <psapi.h>
 #include <cstdio>
 #include <fcntl.h>
 #include <io.h>


        


More information about the llvm-commits mailing list