[pkg-d-commits] [ldc] 165/211: Move the LTO plugin to the `bin` dir.

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:36:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v1.1.0
in repository ldc.

commit 23a677d0018f0a8cc886bdcac36a7394299a17ba
Author: Johan Engelen <jbc.engelen at gmail.com>
Date:   Sun Nov 27 19:34:08 2016 +0100

    Move the LTO plugin to the `bin` dir.
---
 CMakeLists.txt    | 5 ++---
 driver/linker.cpp | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 06fcc1d..8b541a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -736,9 +736,8 @@ elseif(UNIX)
 endif()
 if(EXISTS ${LLVM_LTO_BINARY})
     message(STATUS "Also installing LTO binary: ${LLVM_LTO_BINARY}")
-    file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
-    configure_file(${LLVM_LTO_BINARY} ${PROJECT_BINARY_DIR}/lib/${LDC_LTO_BINARY_NAME} COPYONLY)
-    install(PROGRAMS ${PROJECT_BINARY_DIR}/lib/${LDC_LTO_BINARY_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
+    configure_file(${LLVM_LTO_BINARY} ${PROJECT_BINARY_DIR}/bin/${LDC_LTO_BINARY_NAME} COPYONLY)
+    install(PROGRAMS ${PROJECT_BINARY_DIR}/bin/${LDC_LTO_BINARY_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
 endif()
 
 #
diff --git a/driver/linker.cpp b/driver/linker.cpp
index 0ebcc4d..019b1a1 100644
--- a/driver/linker.cpp
+++ b/driver/linker.cpp
@@ -130,7 +130,7 @@ std::string getLTOGoldPluginPath() {
   } else {
     std::string searchPaths[] = {
         // The plugin packaged with LDC has a "-ldc" suffix.
-        exe_path::prependLibDir("LLVMgold-ldc.so"),
+        exe_path::prependBinDir("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::prependLibDir("libLTO-ldc.dylib");
+    std::string searchPath = exe_path::prependBinDir("libLTO-ldc.dylib");
     if (llvm::sys::fs::exists(searchPath))
       return searchPath;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list