16 lines
710 B
Diff
16 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));
|