Skip to content

Commit b92eba8

Browse files
committed
Add -rpath to installed lib dir. when NANOS6_HOME and CLANG_NANOS6_HOME are not defined
1 parent 5c66ffe commit b92eba8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,10 @@ void tools::addOmpSsRuntime(ArgStringList &CmdArgs, const ToolChain &TC,
553553
CmdArgs.push_back("-rpath");
554554
CmdArgs.push_back(Args.MakeArgString(RuntimeDefaultHome + "/lib"));
555555
}
556+
else {
557+
CmdArgs.push_back("-rpath");
558+
CmdArgs.push_back(Args.MakeArgString(std::string(TC.getDriver().getInstalledDir()) + "/../lib"));
559+
}
556560
CmdArgs.push_back("-lnanos6");
557561
}
558562

0 commit comments

Comments
 (0)