================
@@ -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()))))
----------------
DanielCChen wrote:

Yes, we are. 
The `IsFlangMode()` is indeed checked before we call `addFortranRuntimeLibs`. 
Change both `AIX.cpp` and `PPCLinux.cpp` to `true`.

https://github.com/llvm/llvm-project/pull/131041
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to