[PATCH] D94707: [Flang] Fix compilation on MinGW-w64

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 19:54:12 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8cfe9c02a043: [Flang] Fix compilation on MinGW-w64 (authored by ChinouneMehdi, committed by Meinersbur).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94707/new/

https://reviews.llvm.org/D94707

Files:
  flang/runtime/file.cpp
  flang/tools/flang-driver/driver.cpp


Index: flang/tools/flang-driver/driver.cpp
===================================================================
--- flang/tools/flang-driver/driver.cpp
+++ flang/tools/flang-driver/driver.cpp
@@ -131,7 +131,7 @@
     // information if possible.
     isCrash = CommandRes < 0;
 #ifdef _WIN32
-    IsCrash |= CommandRes == 3;
+    isCrash |= CommandRes == 3;
 #endif
     if (isCrash) {
       theDriver.generateCompilationDiagnostics(*c, *failingCommand);
Index: flang/runtime/file.cpp
===================================================================
--- flang/runtime/file.cpp
+++ flang/runtime/file.cpp
@@ -14,12 +14,12 @@
 #include <cstring>
 #include <fcntl.h>
 #include <stdlib.h>
+#include <sys/stat.h>
 #ifdef _WIN32
 #define NOMINMAX
 #include <io.h>
 #include <windows.h>
 #else
-#include <sys/stat.h>
 #include <unistd.h>
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94707.324505.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210218/ca1b7186/attachment.bin>


More information about the llvm-commits mailing list