14 lines
353 B
Diff
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
|