Skip to content

Commit aeab7ea

Browse files
jpsamaroovchuravy
andcommitted
[LLD] Respect LLVM_TOOLS_INSTALL_DIR
Co-authored-by: Valentin Churavy <[email protected]> Co-authored-by: Julian P Samaroo <[email protected]> (cherry picked from commit a0defe0)
1 parent 8b75d3e commit aeab7ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/cmake/modules/AddLLD.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ macro(add_lld_library name)
2020
${export_to_lldtargets}
2121
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
2222
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
23-
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
23+
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR})
2424

2525
if (${ARG_SHARED} AND NOT CMAKE_CONFIGURATION_TYPES)
2626
add_llvm_install_targets(install-${name}
@@ -47,7 +47,7 @@ macro(add_lld_tool name)
4747
get_target_export_arg(${name} LLD export_to_lldtargets)
4848
install(TARGETS ${name}
4949
${export_to_lldtargets}
50-
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
50+
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
5151
COMPONENT ${name})
5252

5353
if(NOT CMAKE_CONFIGURATION_TYPES)

0 commit comments

Comments
 (0)