[flang-commits] [flang] [clang] [flang][windows] Add option to link against specific MSVC CRT (PR #70833)

Brad King via flang-commits flang-commits at lists.llvm.org
Thu Nov 2 09:57:16 PDT 2023


================
@@ -281,3 +281,26 @@ add_flang_library(FortranRuntime
 
   INSTALL_WITH_TOOLCHAIN
 )
+
+if (DEFINED MSVC)
+  set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
+  add_flang_library(FortranRuntime.static ${sources}
----------------
bradking wrote:

When targeting the MSVC ABI, the plain `FortranRuntime` library added above should be excluded.  Only the per-CRT variants should exist, because choosing a CRT variant is not optional.


https://github.com/llvm/llvm-project/pull/70833


More information about the flang-commits mailing list