2022-05-17 02:41:53 +08:00
|
|
|
clang-tools-extra/clang-tidy/tool/CMakeLists.txt | 2 +-
|
|
|
|
clang-tools-extra/modularize/CMakeLists.txt | 2 +-
|
|
|
|
clang/cmake/modules/AddClang.cmake | 2 +-
|
|
|
|
clang/tools/c-index-test/CMakeLists.txt | 2 +-
|
|
|
|
clang/tools/clang-format/CMakeLists.txt | 2 +-
|
|
|
|
clang/tools/clang-linker-wrapper/CMakeLists.txt | 2 +-
|
|
|
|
clang/tools/clang-nvlink-wrapper/CMakeLists.txt | 2 +-
|
|
|
|
clang/tools/scan-build-py/CMakeLists.txt | 4 ++--
|
|
|
|
clang/tools/scan-build/CMakeLists.txt | 2 +-
|
|
|
|
clang/tools/scan-view/CMakeLists.txt | 2 +-
|
|
|
|
flang/cmake/modules/AddFlang.cmake | 2 +-
|
|
|
|
flang/tools/f18/CMakeLists.txt | 2 +-
|
|
|
|
flang/tools/flang-driver/CMakeLists.txt | 2 +-
|
|
|
|
lld/cmake/modules/AddLLD.cmake | 2 +-
|
|
|
|
lldb/cmake/modules/AddLLDB.cmake | 2 +-
|
2023-04-12 14:20:09 +08:00
|
|
|
15 files changed, 16 insertions(+), 16 deletions(-)
|
2021-04-14 06:17:17 +08:00
|
|
|
|
2022-05-17 02:41:53 +08:00
|
|
|
diff --git a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
|
|
|
|
index 3ce552872015..e09b917ae5f8 100644
|
|
|
|
--- a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
|
|
|
|
+++ b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
|
|
|
|
@@ -64,6 +64,6 @@ install(PROGRAMS clang-tidy-diff.py
|
|
|
|
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
|
|
|
|
COMPONENT clang-tidy)
|
|
|
|
install(PROGRAMS run-clang-tidy.py
|
|
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
|
|
COMPONENT clang-tidy
|
|
|
|
RENAME run-clang-tidy)
|
2021-04-14 06:17:17 +08:00
|
|
|
diff --git a/clang-tools-extra/modularize/CMakeLists.txt b/clang-tools-extra/modularize/CMakeLists.txt
|
2022-05-17 02:41:53 +08:00
|
|
|
index fb17e353c39f..4b409e47446a 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/clang-tools-extra/modularize/CMakeLists.txt
|
|
|
|
+++ b/clang-tools-extra/modularize/CMakeLists.txt
|
|
|
|
@@ -23,5 +23,5 @@ clang_target_link_libraries(modularize
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS modularize
|
2022-05-17 02:41:53 +08:00
|
|
|
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
2021-04-14 06:17:17 +08:00
|
|
|
COMPONENT clang-extras)
|
|
|
|
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
|
2023-04-12 14:20:09 +08:00
|
|
|
index 21ac332e4f5f..1aaf785bdc99 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/clang/cmake/modules/AddClang.cmake
|
|
|
|
+++ b/clang/cmake/modules/AddClang.cmake
|
2023-04-12 14:20:09 +08:00
|
|
|
@@ -166,7 +166,7 @@ macro(add_clang_tool name)
|
|
|
|
get_target_export_arg(${name} Clang export_to_clangtargets)
|
|
|
|
install(TARGETS ${name}
|
|
|
|
${export_to_clangtargets}
|
|
|
|
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
|
|
COMPONENT ${name})
|
2021-04-14 06:17:17 +08:00
|
|
|
|
2023-04-12 14:20:09 +08:00
|
|
|
if(NOT LLVM_ENABLE_IDE)
|
2021-04-14 06:17:17 +08:00
|
|
|
diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt
|
2022-05-17 02:41:53 +08:00
|
|
|
index 0ae1b4e55244..e8a34e136194 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/clang/tools/c-index-test/CMakeLists.txt
|
|
|
|
+++ b/clang/tools/c-index-test/CMakeLists.txt
|
2022-05-17 02:41:53 +08:00
|
|
|
@@ -49,7 +49,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
2021-04-14 06:17:17 +08:00
|
|
|
set_property(TARGET c-index-test APPEND PROPERTY INSTALL_RPATH
|
|
|
|
"@executable_path/../../lib")
|
|
|
|
else()
|
2022-05-17 02:41:53 +08:00
|
|
|
- set(INSTALL_DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
|
|
+ set(INSTALL_DESTINATION "${LLVM_TOOLS_INSTALL_DIR}")
|
2021-04-14 06:17:17 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
install(TARGETS c-index-test
|
|
|
|
diff --git a/clang/tools/clang-format/CMakeLists.txt b/clang/tools/clang-format/CMakeLists.txt
|
2022-05-17 02:41:53 +08:00
|
|
|
index bbdef93b576b..8744e414da0a 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/clang/tools/clang-format/CMakeLists.txt
|
|
|
|
+++ b/clang/tools/clang-format/CMakeLists.txt
|
|
|
|
@@ -36,5 +36,5 @@ install(PROGRAMS clang-format.py
|
2022-05-17 02:41:53 +08:00
|
|
|
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
|
2021-04-14 06:17:17 +08:00
|
|
|
COMPONENT clang-format)
|
|
|
|
install(PROGRAMS git-clang-format
|
2022-05-17 02:41:53 +08:00
|
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
2021-04-14 06:17:17 +08:00
|
|
|
COMPONENT clang-format)
|
2022-05-17 02:41:53 +08:00
|
|
|
diff --git a/clang/tools/clang-linker-wrapper/CMakeLists.txt b/clang/tools/clang-linker-wrapper/CMakeLists.txt
|
2023-04-12 14:20:09 +08:00
|
|
|
index 88c19cad7b53..b50c9ff90586 100644
|
2022-05-17 02:41:53 +08:00
|
|
|
--- a/clang/tools/clang-linker-wrapper/CMakeLists.txt
|
|
|
|
+++ b/clang/tools/clang-linker-wrapper/CMakeLists.txt
|
2023-04-12 14:20:09 +08:00
|
|
|
@@ -44,4 +44,4 @@ target_link_libraries(clang-linker-wrapper
|
2022-05-17 02:41:53 +08:00
|
|
|
${CLANG_LINKER_WRAPPER_LIB_DEPS}
|
|
|
|
)
|
|
|
|
|
2023-04-12 14:20:09 +08:00
|
|
|
-install(TARGETS clang-linker-wrapper RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
2022-05-17 02:41:53 +08:00
|
|
|
+install(TARGETS clang-linker-wrapper RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}")
|
|
|
|
diff --git a/clang/tools/clang-nvlink-wrapper/CMakeLists.txt b/clang/tools/clang-nvlink-wrapper/CMakeLists.txt
|
|
|
|
index 2c979e509795..f22b801fe19a 100644
|
|
|
|
--- a/clang/tools/clang-nvlink-wrapper/CMakeLists.txt
|
|
|
|
+++ b/clang/tools/clang-nvlink-wrapper/CMakeLists.txt
|
|
|
|
@@ -22,4 +22,4 @@ target_link_libraries(clang-nvlink-wrapper
|
|
|
|
${CLANG_NVLINK_WRAPPER_LIB_DEPS}
|
|
|
|
)
|
|
|
|
|
|
|
|
-install(TARGETS clang-nvlink-wrapper RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
|
|
+install(TARGETS clang-nvlink-wrapper RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}")
|
|
|
|
diff --git a/clang/tools/scan-build-py/CMakeLists.txt b/clang/tools/scan-build-py/CMakeLists.txt
|
|
|
|
index 061dc7ef4dd9..91499600693b 100644
|
|
|
|
--- a/clang/tools/scan-build-py/CMakeLists.txt
|
|
|
|
+++ b/clang/tools/scan-build-py/CMakeLists.txt
|
|
|
|
@@ -43,7 +43,7 @@ foreach(BinFile ${BinFiles})
|
|
|
|
${CMAKE_BINARY_DIR}/bin/scan-build-py
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/scan-build)
|
|
|
|
install (PROGRAMS "bin/scan-build"
|
|
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
|
|
RENAME scan-build-py
|
|
|
|
COMPONENT scan-build-py)
|
|
|
|
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/scan-build-py)
|
|
|
|
@@ -56,7 +56,7 @@ foreach(BinFile ${BinFiles})
|
|
|
|
${CMAKE_BINARY_DIR}/bin/
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
|
|
|
install(PROGRAMS bin/${BinFile}
|
|
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
|
|
COMPONENT scan-build-py)
|
|
|
|
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
|
|
|
endif()
|
2021-04-14 06:17:17 +08:00
|
|
|
diff --git a/clang/tools/scan-build/CMakeLists.txt b/clang/tools/scan-build/CMakeLists.txt
|
2023-04-12 14:20:09 +08:00
|
|
|
index ef687b0e90a1..a52af70443c3 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/clang/tools/scan-build/CMakeLists.txt
|
|
|
|
+++ b/clang/tools/scan-build/CMakeLists.txt
|
|
|
|
@@ -47,7 +47,7 @@ if(CLANG_INSTALL_SCANBUILD)
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
|
|
|
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
|
|
|
install(PROGRAMS bin/${BinFile}
|
2022-05-17 02:41:53 +08:00
|
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
2021-04-14 06:17:17 +08:00
|
|
|
COMPONENT scan-build)
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
diff --git a/clang/tools/scan-view/CMakeLists.txt b/clang/tools/scan-view/CMakeLists.txt
|
2022-05-17 02:41:53 +08:00
|
|
|
index 07aec76ee66f..ca6a3380ad0c 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/clang/tools/scan-view/CMakeLists.txt
|
|
|
|
+++ b/clang/tools/scan-view/CMakeLists.txt
|
2021-12-21 00:21:15 +08:00
|
|
|
@@ -20,7 +20,7 @@ if(CLANG_INSTALL_SCANVIEW)
|
2021-04-14 06:17:17 +08:00
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
|
|
|
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
|
|
|
install(PROGRAMS bin/${BinFile}
|
2022-05-17 02:41:53 +08:00
|
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
2021-04-14 06:17:17 +08:00
|
|
|
COMPONENT scan-view)
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
diff --git a/flang/cmake/modules/AddFlang.cmake b/flang/cmake/modules/AddFlang.cmake
|
2023-04-12 14:20:09 +08:00
|
|
|
index d516ca31b51f..4a0d4ce80168 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/flang/cmake/modules/AddFlang.cmake
|
|
|
|
+++ b/flang/cmake/modules/AddFlang.cmake
|
2023-04-12 14:20:09 +08:00
|
|
|
@@ -110,7 +110,7 @@ macro(add_flang_tool name)
|
2021-12-21 00:21:15 +08:00
|
|
|
get_target_export_arg(${name} Flang export_to_flangtargets)
|
2021-04-14 06:17:17 +08:00
|
|
|
install(TARGETS ${name}
|
|
|
|
${export_to_flangtargets}
|
2022-05-17 02:41:53 +08:00
|
|
|
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
2021-04-14 06:17:17 +08:00
|
|
|
COMPONENT ${name})
|
|
|
|
|
|
|
|
if(NOT LLVM_ENABLE_IDE)
|
|
|
|
diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
|
2023-04-12 14:20:09 +08:00
|
|
|
index dd0898730e2e..d01c2f8076e3 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/flang/tools/f18/CMakeLists.txt
|
|
|
|
+++ b/flang/tools/f18/CMakeLists.txt
|
2023-04-12 14:20:09 +08:00
|
|
|
@@ -56,7 +56,7 @@ if (NOT WIN32)
|
|
|
|
@ONLY
|
|
|
|
)
|
|
|
|
add_custom_target(flang-to-external-fc ALL DEPENDS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc)
|
|
|
|
- install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
|
|
+ install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc DESTINATION "${LLVM_TOOLS_INSTALL_DIR}")
|
2021-06-30 07:08:28 +08:00
|
|
|
endif()
|
2023-04-12 14:20:09 +08:00
|
|
|
|
|
|
|
# TODO Move this to a more suitable location
|
2021-12-21 00:21:15 +08:00
|
|
|
diff --git a/flang/tools/flang-driver/CMakeLists.txt b/flang/tools/flang-driver/CMakeLists.txt
|
2023-04-12 14:20:09 +08:00
|
|
|
index 94c8ce6d58f1..466d41c58b1d 100644
|
2021-12-21 00:21:15 +08:00
|
|
|
--- a/flang/tools/flang-driver/CMakeLists.txt
|
|
|
|
+++ b/flang/tools/flang-driver/CMakeLists.txt
|
2023-04-12 14:20:09 +08:00
|
|
|
@@ -42,4 +42,4 @@ if(FLANG_PLUGIN_SUPPORT)
|
2022-05-17 02:41:53 +08:00
|
|
|
export_executable_symbols_for_plugins(flang-new)
|
|
|
|
endif()
|
2021-12-21 00:21:15 +08:00
|
|
|
|
2022-05-17 02:41:53 +08:00
|
|
|
-install(TARGETS flang-new DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
|
|
+install(TARGETS flang-new DESTINATION "${LLVM_TOOLS_INSTALL_DIR}")
|
2021-04-14 06:17:17 +08:00
|
|
|
diff --git a/lld/cmake/modules/AddLLD.cmake b/lld/cmake/modules/AddLLD.cmake
|
2023-04-12 14:20:09 +08:00
|
|
|
index d3924f7243d4..f328b62ad8c8 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/lld/cmake/modules/AddLLD.cmake
|
|
|
|
+++ b/lld/cmake/modules/AddLLD.cmake
|
2022-05-17 02:41:53 +08:00
|
|
|
@@ -47,7 +47,7 @@ macro(add_lld_tool name)
|
2021-12-21 00:21:15 +08:00
|
|
|
get_target_export_arg(${name} LLD export_to_lldtargets)
|
2021-04-14 06:17:17 +08:00
|
|
|
install(TARGETS ${name}
|
|
|
|
${export_to_lldtargets}
|
2022-05-17 02:41:53 +08:00
|
|
|
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
+ RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
2021-04-14 06:17:17 +08:00
|
|
|
COMPONENT ${name})
|
|
|
|
|
|
|
|
if(NOT CMAKE_CONFIGURATION_TYPES)
|
|
|
|
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
|
2022-05-17 02:41:53 +08:00
|
|
|
index 3291a7c808e1..9fe9b9a7940d 100644
|
2021-04-14 06:17:17 +08:00
|
|
|
--- a/lldb/cmake/modules/AddLLDB.cmake
|
|
|
|
+++ b/lldb/cmake/modules/AddLLDB.cmake
|
2022-05-17 02:41:53 +08:00
|
|
|
@@ -189,7 +189,7 @@ function(add_lldb_executable name)
|
2021-04-14 06:17:17 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ARG_GENERATE_INSTALL)
|
|
|
|
- set(install_dest bin)
|
2022-05-17 02:41:53 +08:00
|
|
|
+ set(install_dest "${LLVM_TOOLS_INSTALL_DIR}")
|
2021-04-14 06:17:17 +08:00
|
|
|
if(ARG_INSTALL_PREFIX)
|
|
|
|
set(install_dest ${ARG_INSTALL_PREFIX})
|
|
|
|
endif()
|
2023-04-12 14:20:09 +08:00
|
|
|
diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt
|
|
|
|
index df48cc0d6..1363144fd 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 "${CMAKE_INSTALL_BINDIR}")
|
|
|
|
+ RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}")
|
|
|
|
|
|
|
|
if(NOT LLD_SYMLINKS_TO_CREATE)
|
|
|
|
set(LLD_SYMLINKS_TO_CREATE
|