MINGW-packages/mingw-w64-flang/0103-fix-build-on-mingw.patch
مهدي شينون (Mehdi Chinoune) e3ca66d349 LLVM: update to 21.1.1
2025-09-19 12:06:21 +01:00

22 lines
496 B
Diff

--- a/lib/runtime/CMakeLists.txt
+++ b/lib/runtime/CMakeLists.txt
@@ -182,7 +182,7 @@
endif ()
-if (NOT WIN32)
+if (NOT MSVC)
add_flangrt_library(flang_rt.runtime STATIC SHARED
${sources}
LINK_LIBRARIES ${Backtrace_LIBRARY}
--- a/lib/runtime/command.cpp
+++ b/lib/runtime/command.cpp
@@ -19,6 +19,7 @@
#ifdef _WIN32
#include "flang/Common/windows-include.h"
#include <direct.h>
+#include <process.h>
#define getcwd _getcwd
#define unlink _unlink
#define PATH_MAX MAX_PATH