841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
15 lines
710 B
Diff
15 lines
710 B
Diff
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp
|
|
index 37ec73468570..b73e75aa6e59 100644
|
|
--- a/lib/Driver/ToolChains/CommonArgs.cpp
|
|
+++ b/lib/Driver/ToolChains/CommonArgs.cpp
|
|
@@ -370,8 +370,8 @@ void tools::AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args,
|
|
#endif
|
|
|
|
SmallString<1024> Plugin;
|
|
- llvm::sys::path::native(Twine(ToolChain.getDriver().Dir) +
|
|
- "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold" +
|
|
+ llvm::sys::path::native(Twine("@libllvmLibdir@"
|
|
+ "/LLVMgold") +
|
|
Suffix,
|
|
Plugin);
|
|
CmdArgs.push_back(Args.MakeArgString(Plugin));
|