mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 10:17:50 +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>
209 lines
12 KiB
Diff
209 lines
12 KiB
Diff
clang/cmake/modules/CMakeLists.txt | 4 ++--
|
|
clang/utils/hmaptool/CMakeLists.txt | 2 +-
|
|
compiler-rt/cmake/Modules/CompilerRTUtils.cmake | 2 +-
|
|
flang/cmake/modules/CMakeLists.txt | 4 ++--
|
|
lld/cmake/modules/CMakeLists.txt | 4 ++--
|
|
llvm/CMakeLists.txt | 2 +-
|
|
llvm/cmake/modules/AddLLVM.cmake | 2 +-
|
|
llvm/cmake/modules/CMakeLists.txt | 2 +-
|
|
mlir/cmake/modules/CMakeLists.txt | 8 ++++----
|
|
mlir/test/CMakeLists.txt | 2 +-
|
|
openmp/tools/Modules/CMakeLists.txt | 2 +-
|
|
polly/cmake/CMakeLists.txt | 8 ++++----
|
|
12 files changed, 21 insertions(+), 21 deletions(-)
|
|
|
|
diff --git a/clang/cmake/modules/CMakeLists.txt b/clang/cmake/modules/CMakeLists.txt
|
|
index 6a7fa2fa27eb..a17f807ab155 100644
|
|
--- a/clang/cmake/modules/CMakeLists.txt
|
|
+++ b/clang/cmake/modules/CMakeLists.txt
|
|
@@ -6,13 +6,13 @@ include(FindPrefixFromConfig)
|
|
# Generate a list of CMake library targets so that other CMake projects can
|
|
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
|
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
|
-set(CLANG_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/clang" CACHE STRING
|
|
+set(CLANG_INSTALL_PACKAGE_DIR "share/clang" CACHE STRING
|
|
"Path for CMake subdirectory for Clang (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/clang')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
set(clang_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang")
|
|
|
|
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
|
-set(LLVM_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/llvm" CACHE STRING
|
|
+set(LLVM_INSTALL_PACKAGE_DIR "share/llvm" CACHE STRING
|
|
"Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
|
diff --git a/clang/utils/hmaptool/CMakeLists.txt b/clang/utils/hmaptool/CMakeLists.txt
|
|
index 511268069bd1..72915ec66504 100644
|
|
--- a/clang/utils/hmaptool/CMakeLists.txt
|
|
+++ b/clang/utils/hmaptool/CMakeLists.txt
|
|
@@ -1,4 +1,4 @@
|
|
-install(PROGRAMS hmaptool DESTINATION "${CLANG_TOOLS_INSTALL_DIR}" COMPONENT hmaptool)
|
|
+install(PROGRAMS hmaptool DESTINATION "${LLVM_TOOLS_INSTALL_DIR}" COMPONENT hmaptool)
|
|
add_custom_target(hmaptool ALL DEPENDS "hmaptool")
|
|
set_target_properties(hmaptool PROPERTIES FOLDER "Utils")
|
|
|
|
diff --git a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
|
|
index e322af89a042..0df6a7a775cd 100644
|
|
--- a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
|
|
+++ b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
|
|
@@ -377,7 +377,7 @@ macro(load_llvm_config)
|
|
file(TO_CMAKE_PATH ${LLVM_CMAKE_DIR_FROM_LLVM_CONFIG} LLVM_CMAKE_DIR)
|
|
else()
|
|
file(TO_CMAKE_PATH ${LLVM_BINARY_DIR} LLVM_BINARY_DIR_CMAKE_STYLE)
|
|
- set(LLVM_CMAKE_DIR "${LLVM_BINARY_DIR_CMAKE_STYLE}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
|
+ set(LLVM_CMAKE_DIR "${LLVM_BINARY_DIR_CMAKE_STYLE}/share/llvm")
|
|
endif()
|
|
|
|
set(LLVM_CMAKE_INCLUDE_FILE "${LLVM_CMAKE_DIR}/LLVMConfig.cmake")
|
|
diff --git a/flang/cmake/modules/CMakeLists.txt b/flang/cmake/modules/CMakeLists.txt
|
|
index 105cc09bf850..460db6c1d9e7 100644
|
|
--- a/flang/cmake/modules/CMakeLists.txt
|
|
+++ b/flang/cmake/modules/CMakeLists.txt
|
|
@@ -5,13 +5,13 @@ include(FindPrefixFromConfig)
|
|
# Generate a list of CMake library targets so that other CMake projects can
|
|
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
|
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
|
-set(FLANG_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/flang" CACHE STRING
|
|
+set(FLANG_INSTALL_PACKAGE_DIR "share/flang" CACHE STRING
|
|
"Path for CMake subdirectory for Flang (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/flang')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
set(flang_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/flang")
|
|
|
|
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
|
-set(LLVM_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/llvm" CACHE STRING
|
|
+set(LLVM_INSTALL_PACKAGE_DIR "share/llvm" CACHE STRING
|
|
"Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
|
diff --git a/lld/cmake/modules/CMakeLists.txt b/lld/cmake/modules/CMakeLists.txt
|
|
index 57195bce45c9..e24c080725d7 100644
|
|
--- a/lld/cmake/modules/CMakeLists.txt
|
|
+++ b/lld/cmake/modules/CMakeLists.txt
|
|
@@ -5,13 +5,13 @@ include(FindPrefixFromConfig)
|
|
# Generate a list of CMake library targets so that other CMake projects can
|
|
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
|
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
|
-set(LLD_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/lld" CACHE STRING
|
|
+set(LLD_INSTALL_PACKAGE_DIR "share/lld" CACHE STRING
|
|
"Path for CMake subdirectory for LLD (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/lld')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
set(lld_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/lld")
|
|
|
|
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
|
-set(LLVM_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/llvm" CACHE STRING
|
|
+set(LLVM_INSTALL_PACKAGE_DIR "share/llvm" CACHE STRING
|
|
"Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
|
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
|
|
index 4be91312271d..d6002808a205 100644
|
|
--- a/llvm/CMakeLists.txt
|
|
+++ b/llvm/CMakeLists.txt
|
|
@@ -325,7 +325,7 @@ set(LLVM_LIBDIR_SUFFIX "" CACHE STRING "Define suffix of library directory name
|
|
# LLVM_INSTALL_PACKAGE_DIR needs to be declared prior to adding the tools
|
|
# subdirectory in order to have the value available for llvm-config.
|
|
include(GNUInstallPackageDir)
|
|
-set(LLVM_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/llvm" CACHE STRING
|
|
+set(LLVM_INSTALL_PACKAGE_DIR "share/llvm" CACHE STRING
|
|
"Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
|
|
|
|
set(LLVM_TOOLS_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}" CACHE STRING
|
|
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
|
|
index 057431208322..89cbba8a5676 100644
|
|
--- a/llvm/cmake/modules/AddLLVM.cmake
|
|
+++ b/llvm/cmake/modules/AddLLVM.cmake
|
|
@@ -1093,7 +1093,7 @@ function(process_llvm_pass_plugins)
|
|
message(FATAL_ERROR "LLVM_INSTALL_PACKAGE_DIR must be defined and writable. GEN_CONFIG should only be passe when building LLVM proper.")
|
|
endif()
|
|
# LLVM_INSTALL_PACKAGE_DIR might be absolute, so don't reuse below.
|
|
- set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
|
+ set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm")
|
|
file(WRITE
|
|
"${llvm_cmake_builddir}/LLVMConfigExtensions.cmake"
|
|
"set(LLVM_STATIC_EXTENSIONS ${LLVM_STATIC_EXTENSIONS})")
|
|
diff --git a/llvm/cmake/modules/CMakeLists.txt b/llvm/cmake/modules/CMakeLists.txt
|
|
index 470881516915..36d2e9aa2120 100644
|
|
--- a/llvm/cmake/modules/CMakeLists.txt
|
|
+++ b/llvm/cmake/modules/CMakeLists.txt
|
|
@@ -3,7 +3,7 @@ include(LLVMDistributionSupport)
|
|
include(FindPrefixFromConfig)
|
|
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
-set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
|
+set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm")
|
|
|
|
# First for users who use an installed LLVM, create the LLVMExports.cmake file.
|
|
set(LLVM_EXPORTS_FILE ${llvm_cmake_builddir}/LLVMExports.cmake)
|
|
diff --git a/mlir/cmake/modules/CMakeLists.txt b/mlir/cmake/modules/CMakeLists.txt
|
|
index 5fd9454cad93..af1d73a852c7 100644
|
|
--- a/mlir/cmake/modules/CMakeLists.txt
|
|
+++ b/mlir/cmake/modules/CMakeLists.txt
|
|
@@ -6,16 +6,16 @@ include(FindPrefixFromConfig)
|
|
# Generate a list of CMake library targets so that other CMake projects can
|
|
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
|
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
|
-set(MLIR_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/mlir" CACHE STRING
|
|
+set(MLIR_INSTALL_PACKAGE_DIR "share/mlir" CACHE STRING
|
|
"Path for CMake subdirectory for Polly (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/polly')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
-set(mlir_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/mlir")
|
|
+set(mlir_cmake_builddir "${CMAKE_BINARY_DIR}/share/mlir")
|
|
|
|
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
|
-set(LLVM_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/llvm" CACHE STRING
|
|
+set(LLVM_INSTALL_PACKAGE_DIR "share/llvm" CACHE STRING
|
|
"Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
-set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
|
+set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm")
|
|
|
|
get_property(MLIR_EXPORTS GLOBAL PROPERTY MLIR_EXPORTS)
|
|
export(TARGETS ${MLIR_EXPORTS} FILE ${mlir_cmake_builddir}/MLIRTargets.cmake)
|
|
diff --git a/mlir/test/CMakeLists.txt b/mlir/test/CMakeLists.txt
|
|
index 74f805865d2d..998ddb3b48e8 100644
|
|
--- a/mlir/test/CMakeLists.txt
|
|
+++ b/mlir/test/CMakeLists.txt
|
|
@@ -8,7 +8,7 @@ endif()
|
|
# Passed to lit.site.cfg.py.so that the out of tree Standalone dialect test
|
|
# can find MLIR's CMake configuration
|
|
set(MLIR_CMAKE_DIR
|
|
- "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/mlir")
|
|
+ "${CMAKE_BINARY_DIR}/share/mlir")
|
|
|
|
# Passed to lit.site.cfg.py.in to set up the path where to find the libraries
|
|
# for linalg integration tests.
|
|
diff --git a/openmp/tools/Modules/CMakeLists.txt b/openmp/tools/Modules/CMakeLists.txt
|
|
index 22d818eea72d..75aacc4468d4 100644
|
|
--- a/openmp/tools/Modules/CMakeLists.txt
|
|
+++ b/openmp/tools/Modules/CMakeLists.txt
|
|
@@ -12,4 +12,4 @@
|
|
|
|
|
|
install(FILES "FindOpenMPTarget.cmake"
|
|
- DESTINATION "${OPENMP_INSTALL_LIBDIR}/cmake/openmp")
|
|
+ DESTINATION "share/openmp")
|
|
diff --git a/polly/cmake/CMakeLists.txt b/polly/cmake/CMakeLists.txt
|
|
index 4c528d562e23..800080fb3f79 100644
|
|
--- a/polly/cmake/CMakeLists.txt
|
|
+++ b/polly/cmake/CMakeLists.txt
|
|
@@ -4,15 +4,15 @@ include(GNUInstallPackageDir)
|
|
include(ExtendPath)
|
|
include(FindPrefixFromConfig)
|
|
|
|
-set(POLLY_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/polly" CACHE STRING
|
|
+set(POLLY_INSTALL_PACKAGE_DIR "share/polly" CACHE STRING
|
|
"Path for CMake subdirectory for Polly (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/polly')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
-set(polly_cmake_builddir "${POLLY_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/polly")
|
|
+set(polly_cmake_builddir "${POLLY_BINARY_DIR}/share/polly")
|
|
|
|
-set(LLVM_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/llvm" CACHE STRING
|
|
+set(LLVM_INSTALL_PACKAGE_DIR "share/llvm" CACHE STRING
|
|
"Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
|
|
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
|
|
-set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
|
+set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm")
|
|
|
|
if (CMAKE_CONFIGURATION_TYPES)
|
|
set(POLLY_EXPORTS_FILE_NAME "PollyExports-$<LOWER_CASE:$<CONFIG>>.cmake")
|