[flang-commits] [PATCH] D94707: [Flang] Fix compilation on MinGW-w64
مهدي شينون (Mehdi Chinoune) via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Feb 3 22:19:10 PST 2021
ChinouneMehdi updated this revision to Diff 321314.
ChinouneMehdi added a comment.
Herald added a reviewer: awarzynski.
Update diff.
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.321314.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210204/f6619758/attachment.bin>
More information about the flang-commits
mailing list