aboutsummaryrefslogtreecommitdiff
path: root/lld/tools
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-12-30 06:22:48 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-12-31 18:57:57 +0000
commit896537048df70762b5b0051a0e1b065a74e8d0ce (patch)
treebbabbda09e4a84e4c8f5d1c8637f6171a4a8611f /lld/tools
parent255ee643a8c559375a9c9787ef7d121790040818 (diff)
downloadllvm-896537048df70762b5b0051a0e1b065a74e8d0ce.zip
llvm-896537048df70762b5b0051a0e1b065a74e8d0ce.tar.gz
llvm-896537048df70762b5b0051a0e1b065a74e8d0ce.tar.bz2
[lld][CMake] Use `GNUInstallDirs` to support custom installation dirs
Extracted from D99484. My new plan is to start from the outside and work inward. Reviewed By: stephenneuendorffer Differential Revision: https://reviews.llvm.org/D115568
Diffstat (limited to 'lld/tools')
-rw-r--r--lld/tools/lld/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt
index c5c86c6..df48cc0 100644
--- a/lld/tools/lld/CMakeLists.txt
+++ b/lld/tools/lld/CMakeLists.txt
@@ -20,7 +20,7 @@ target_link_libraries(lld
)
install(TARGETS lld
- RUNTIME DESTINATION bin)
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
if(NOT LLD_SYMLINKS_TO_CREATE)
set(LLD_SYMLINKS_TO_CREATE