Revert "Move the LTO plugin to the bin dir."

This reverts commit 23a677d001.
This commit is contained in:
Johan Engelen 2016-11-28 13:58:09 +01:00
parent ca560e3a80
commit 788add6155
2 changed files with 5 additions and 4 deletions

View file

@ -130,7 +130,7 @@ std::string getLTOGoldPluginPath() {
} else {
std::string searchPaths[] = {
// The plugin packaged with LDC has a "-ldc" suffix.
exe_path::prependBinDir("LLVMgold-ldc.so"),
exe_path::prependLibDir("LLVMgold-ldc.so"),
"/usr/local/lib/LLVMgold.so", "/usr/lib/bfd-plugins/LLVMgold.so",
};
@ -181,7 +181,7 @@ std::string getLTOdylibPath() {
fatal();
} else {
// The plugin packaged with LDC has a "-ldc" suffix.
std::string searchPath = exe_path::prependBinDir("libLTO-ldc.dylib");
std::string searchPath = exe_path::prependLibDir("libLTO-ldc.dylib");
if (llvm::sys::fs::exists(searchPath))
return searchPath;