Skip to content

Commit b2df115

Browse files
committed
[flang-rt] Fix aother unintended change.
1 parent 71ab9db commit b2df115

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -822,11 +822,7 @@ void ToolChain::addFortranRuntimeLibs(const ArgList &Args,
822822
if (AsNeeded)
823823
addAsNeededOption(*this, Args, CmdArgs, /*as_needed=*/false);
824824
}
825-
if (const char *res = getCompilerRTArgString(
826-
Args, "runtime", ToolChain::FT_Static, getDriver().IsFlangMode()))
827-
CmdArgs.push_back(res);
828-
else
829-
CmdArgs.push_back("-lflang_rt.runtime");
825+
CmdArgs.push_back("-lflang_rt.runtime");
830826
addArchSpecificRPath(*this, Args, CmdArgs);
831827

832828
// needs libexecinfo for backtrace functions

0 commit comments

Comments
 (0)