mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 19:19:30 +08:00
203383666e
* [llvm] Update port to 15.0.1 The patchset is rebased onto llvmorg-15.0.1, with some significant differences especially around install paths. The NixOS project appears to be midway through a large change to the install path mechanics, for the same purpose as this patchset. When that has landed, it looks like most of these patches can go away. * [llvm] x-add-version for 15.0.1 * [llvm] Add enable-ios feature flag This passes straight through to COMPILER_RT_ENABLE_IOS, which is defaulted to ON in LLVM. This is a problem if your build host doesn't have the iOS SDK installed, such as on vcpkg CI. Co-authored-by: Josh Channings <josh@channings.me.uk>
221 lines
9.7 KiB
Diff
221 lines
9.7 KiB
Diff
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 +-
|
|
15 files changed, 16 insertions(+), 16 deletions(-)
|
|
|
|
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)
|
|
diff --git a/clang-tools-extra/modularize/CMakeLists.txt b/clang-tools-extra/modularize/CMakeLists.txt
|
|
index fb17e353c39f..4b409e47446a 100644
|
|
--- 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
|
|
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
+ RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
COMPONENT clang-extras)
|
|
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
|
|
index 21ac332e4f5f..1aaf785bdc99 100644
|
|
--- a/clang/cmake/modules/AddClang.cmake
|
|
+++ b/clang/cmake/modules/AddClang.cmake
|
|
@@ -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})
|
|
|
|
if(NOT LLVM_ENABLE_IDE)
|
|
diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt
|
|
index 0ae1b4e55244..e8a34e136194 100644
|
|
--- a/clang/tools/c-index-test/CMakeLists.txt
|
|
+++ b/clang/tools/c-index-test/CMakeLists.txt
|
|
@@ -49,7 +49,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
|
set_property(TARGET c-index-test APPEND PROPERTY INSTALL_RPATH
|
|
"@executable_path/../../lib")
|
|
else()
|
|
- set(INSTALL_DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
+ set(INSTALL_DESTINATION "${LLVM_TOOLS_INSTALL_DIR}")
|
|
endif()
|
|
|
|
install(TARGETS c-index-test
|
|
diff --git a/clang/tools/clang-format/CMakeLists.txt b/clang/tools/clang-format/CMakeLists.txt
|
|
index bbdef93b576b..8744e414da0a 100644
|
|
--- a/clang/tools/clang-format/CMakeLists.txt
|
|
+++ b/clang/tools/clang-format/CMakeLists.txt
|
|
@@ -36,5 +36,5 @@ install(PROGRAMS clang-format.py
|
|
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
|
|
COMPONENT clang-format)
|
|
install(PROGRAMS git-clang-format
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
COMPONENT clang-format)
|
|
diff --git a/clang/tools/clang-linker-wrapper/CMakeLists.txt b/clang/tools/clang-linker-wrapper/CMakeLists.txt
|
|
index 88c19cad7b53..b50c9ff90586 100644
|
|
--- a/clang/tools/clang-linker-wrapper/CMakeLists.txt
|
|
+++ b/clang/tools/clang-linker-wrapper/CMakeLists.txt
|
|
@@ -44,4 +44,4 @@ target_link_libraries(clang-linker-wrapper
|
|
${CLANG_LINKER_WRAPPER_LIB_DEPS}
|
|
)
|
|
|
|
-install(TARGETS clang-linker-wrapper RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
+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()
|
|
diff --git a/clang/tools/scan-build/CMakeLists.txt b/clang/tools/scan-build/CMakeLists.txt
|
|
index ef687b0e90a1..a52af70443c3 100644
|
|
--- 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}
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
COMPONENT scan-build)
|
|
endforeach()
|
|
|
|
diff --git a/clang/tools/scan-view/CMakeLists.txt b/clang/tools/scan-view/CMakeLists.txt
|
|
index 07aec76ee66f..ca6a3380ad0c 100644
|
|
--- a/clang/tools/scan-view/CMakeLists.txt
|
|
+++ b/clang/tools/scan-view/CMakeLists.txt
|
|
@@ -20,7 +20,7 @@ if(CLANG_INSTALL_SCANVIEW)
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
|
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
|
install(PROGRAMS bin/${BinFile}
|
|
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
+ DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
COMPONENT scan-view)
|
|
endforeach()
|
|
|
|
diff --git a/flang/cmake/modules/AddFlang.cmake b/flang/cmake/modules/AddFlang.cmake
|
|
index d516ca31b51f..4a0d4ce80168 100644
|
|
--- a/flang/cmake/modules/AddFlang.cmake
|
|
+++ b/flang/cmake/modules/AddFlang.cmake
|
|
@@ -110,7 +110,7 @@ macro(add_flang_tool name)
|
|
get_target_export_arg(${name} Flang export_to_flangtargets)
|
|
install(TARGETS ${name}
|
|
${export_to_flangtargets}
|
|
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
+ RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
COMPONENT ${name})
|
|
|
|
if(NOT LLVM_ENABLE_IDE)
|
|
diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
|
|
index dd0898730e2e..d01c2f8076e3 100644
|
|
--- a/flang/tools/f18/CMakeLists.txt
|
|
+++ b/flang/tools/f18/CMakeLists.txt
|
|
@@ -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}")
|
|
endif()
|
|
|
|
# TODO Move this to a more suitable location
|
|
diff --git a/flang/tools/flang-driver/CMakeLists.txt b/flang/tools/flang-driver/CMakeLists.txt
|
|
index 94c8ce6d58f1..466d41c58b1d 100644
|
|
--- a/flang/tools/flang-driver/CMakeLists.txt
|
|
+++ b/flang/tools/flang-driver/CMakeLists.txt
|
|
@@ -42,4 +42,4 @@ if(FLANG_PLUGIN_SUPPORT)
|
|
export_executable_symbols_for_plugins(flang-new)
|
|
endif()
|
|
|
|
-install(TARGETS flang-new DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
+install(TARGETS flang-new DESTINATION "${LLVM_TOOLS_INSTALL_DIR}")
|
|
diff --git a/lld/cmake/modules/AddLLD.cmake b/lld/cmake/modules/AddLLD.cmake
|
|
index d3924f7243d4..f328b62ad8c8 100644
|
|
--- a/lld/cmake/modules/AddLLD.cmake
|
|
+++ b/lld/cmake/modules/AddLLD.cmake
|
|
@@ -47,7 +47,7 @@ macro(add_lld_tool name)
|
|
get_target_export_arg(${name} LLD export_to_lldtargets)
|
|
install(TARGETS ${name}
|
|
${export_to_lldtargets}
|
|
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
+ RUNTIME DESTINATION "${LLVM_TOOLS_INSTALL_DIR}"
|
|
COMPONENT ${name})
|
|
|
|
if(NOT CMAKE_CONFIGURATION_TYPES)
|
|
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
|
|
index 3291a7c808e1..9fe9b9a7940d 100644
|
|
--- a/lldb/cmake/modules/AddLLDB.cmake
|
|
+++ b/lldb/cmake/modules/AddLLDB.cmake
|
|
@@ -189,7 +189,7 @@ function(add_lldb_executable name)
|
|
endif()
|
|
|
|
if(ARG_GENERATE_INSTALL)
|
|
- set(install_dest bin)
|
|
+ set(install_dest "${LLVM_TOOLS_INSTALL_DIR}")
|
|
if(ARG_INSTALL_PREFIX)
|
|
set(install_dest ${ARG_INSTALL_PREFIX})
|
|
endif()
|
|
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
|