Skip to content

Commit 6104e14

Browse files
Kenovchuravy
authored andcommitted
[clang/CMake] Respect LLVM_TOOLS_INSTALL_DIR
Otherwise clang installs all of its tools into `bin/` while LLVM installs its tools into (LLVM_TOOLS_INSTALL_DIR). I could swear this used to work (and in fact the julia build system assumes it), but I can't pin down a specific commit that would have broken this, and julia has been relying on pre-compiled binaries for a while now (that don't use this setting), so it may have been broken for quite a while. Differential Revision: https://reviews.llvm.org/D88630
1 parent 9ef91df commit 6104e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/cmake/modules/AddClang.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ macro(add_clang_tool name)
159159
get_target_export_arg(${name} Clang export_to_clangtargets)
160160
install(TARGETS ${name}
161161
${export_to_clangtargets}
162-
RUNTIME DESTINATION bin
162+
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
163163
COMPONENT ${name})
164164

165165
if(NOT LLVM_ENABLE_IDE)

0 commit comments

Comments
 (0)