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

14 lines
353 B
Diff

--- a/lib/runtime/CMakeLists.txt
+++ b/lib/runtime/CMakeLists.txt
@@ -225,6 +225,10 @@
set(sources ${supported_sources} ${host_sources} ${f128_sources})
endif ()
+if (MINGW)
+ string(APPEND CMAKE_C_FLAGS " -municode")
+ string(APPEND CMAKE_CXX_FLAGS " -municode")
+endif()
if (NOT WIN32)
add_flangrt_library(flang_rt.runtime STATIC SHARED