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

via flang-commits flang-commits at lists.llvm.org
Tue Oct 31 10:27:12 PDT 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c7040509299542f8986448fa47abc0f3da75f661 9e84729cada6c032c64934ee519e605407aab049 -- clang/lib/Driver/ToolChains/CommonArgs.cpp clang/lib/Driver/ToolChains/CommonArgs.h clang/lib/Driver/ToolChains/Darwin.cpp clang/lib/Driver/ToolChains/DragonFly.cpp clang/lib/Driver/ToolChains/FreeBSD.cpp clang/lib/Driver/ToolChains/Gnu.cpp clang/lib/Driver/ToolChains/Haiku.cpp clang/lib/Driver/ToolChains/MSVC.cpp clang/lib/Driver/ToolChains/MinGW.cpp clang/lib/Driver/ToolChains/NetBSD.cpp clang/lib/Driver/ToolChains/OpenBSD.cpp clang/lib/Driver/ToolChains/Solaris.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
index 1cac9a179eb9..60dbe9f87a1f 100644
--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -990,7 +990,7 @@ void tools::addFortranRuntimeLibs(const ToolChain &TC, const ArgList &Args,
                        .Case("dll_dbg", options::OPT__SLASH_MDd)
                        .Default(options::OPT__SLASH_MT);
     }
-    switch(RTOptionID) {
+    switch (RTOptionID) {
     case options::OPT__SLASH_MT:
       CmdArgs.push_back("/DEFAULTLIB:libcmt");
       CmdArgs.push_back("Fortran_main.static.lib");

``````````

</details>


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


More information about the flang-commits mailing list