[flang-commits] [clang] [flang] [driver] Generalize the code that adds the path of libflang_rt.runtime.a. (PR #134362)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Tue Apr 8 07:34:30 PDT 2025


================
@@ -746,7 +746,8 @@ std::string ToolChain::buildCompilerRTBasename(const llvm::opt::ArgList &Args,
   case ToolChain::FT_Shared:
     Suffix = TT.isOSWindows()
                  ? (TT.isWindowsGNUEnvironment() ? ".dll.a" : ".lib")
-                 : ".so";
+             : TT.isOSAIX() ? ".a"
----------------
tarunprabhu wrote:

Could we use a `switch` or even an `if` statement here? Nested ternary expressions are  not the most readable.

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


More information about the flang-commits mailing list