[compiler-rt] 1561365 - [ORC_RT][COFF] Fix cross compilation with mingw headers

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 14 04:27:37 PDT 2022


Author: Martin Storsjö
Date: 2022-08-14T14:23:25+03:00
New Revision: 156136502b73a53192f21fc0477263e76a17a9b9

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

LOG: [ORC_RT][COFF] Fix cross compilation with mingw headers

Mingw headers are all lowercase, and can be used for cross compilation
from case sensitive file systems.

The official Windows SDK headers aren't self-consistent wrt upper/lower
case, so those headers can't be used on case sensitive systems without
a layer providing case insensitivity anyway.

This matches other includes of windows.h throughout the codebase.

Added: 
    

Modified: 
    compiler-rt/lib/orc/coff_platform.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/orc/coff_platform.cpp b/compiler-rt/lib/orc/coff_platform.cpp
index ccfa7ab94c61..57a83ebeabdd 100644
--- a/compiler-rt/lib/orc/coff_platform.cpp
+++ b/compiler-rt/lib/orc/coff_platform.cpp
@@ -11,7 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #define NOMINMAX
-#include <Windows.h>
+#include <windows.h>
 
 #include "coff_platform.h"
 


        


More information about the llvm-commits mailing list