We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db1cca commit 880b184Copy full SHA for 880b184
clang/lib/Driver/ToolChain.cpp
@@ -856,12 +856,13 @@ void ToolChain::addFlangRTLibPath(const ArgList &Args,
856
if (getVFS().exists(Twine(Path = getCompilerRTArgString(
857
Args, "runtime", ToolChain::FT_Static, true))))
858
CmdArgs.push_back(Path);
859
- else if (getVFS().exists(
860
- Twine(Path = getCompilerRTArgString(
861
- Args, "runtime", ToolChain::FT_Shared, true))))
862
- CmdArgs.push_back(Path);
863
else {
864
- CmdArgs.push_back("-lflang_rt.runtime");
+ if (getVFS().exists(
+ Twine(Path = getCompilerRTArgString(Args, "runtime",
+ ToolChain::FT_Shared, true))))
+ CmdArgs.push_back(Path);
+ else
865
+ CmdArgs.push_back("-lflang_rt.runtime");
866
addArchSpecificRPath(*this, Args, CmdArgs);
867
}
868
0 commit comments