[clang] [llvm] [flang-rt] Pass the whole path of libflang_rt.runtime.a to linker on AIX (PR #131041)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 17 11:42:33 PDT 2025
================
@@ -101,3 +102,19 @@ bool PPCLinuxToolChain::SupportIEEEFloat128(
return GlibcSupportsFloat128((Twine(D.DyldPrefix) + Linker).str()) &&
!(D.CCCIsCXX() && HasUnsupportedCXXLib);
}
+
+void PPCLinuxToolChain::addFortranRuntimeLibs(
+ const ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const {
+ // Link static flang_rt.runtime.a or shared flang_rt.runtime.so
+ const char *Path;
+ if (getVFS().exists(Twine(
+ Path = getCompilerRTArgString(Args, "runtime", ToolChain::FT_Static,
+ getDriver().IsFlangMode()))))
----------------
Meinersbur wrote:
Aren't we always in `IsFlangMode` when executing `addFortranRuntimeLibs`?
https://github.com/llvm/llvm-project/pull/131041
More information about the llvm-commits
mailing list