mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 04:59:01 +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>
45 lines
2.5 KiB
Diff
45 lines
2.5 KiB
Diff
clang/lib/Headers/CMakeLists.txt | 2 +-
|
|
clang/runtime/CMakeLists.txt | 2 +-
|
|
compiler-rt/cmake/base-config-ix.cmake | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt
|
|
index 6e2060991b92..94ced7feda9b 100644
|
|
--- a/clang/lib/Headers/CMakeLists.txt
|
|
+++ b/clang/lib/Headers/CMakeLists.txt
|
|
@@ -420,7 +420,7 @@ add_header_target("openmp-resource-headers" ${openmp_wrapper_files})
|
|
add_header_target("windows-resource-headers" ${windows_only_files})
|
|
add_header_target("utility-resource-headers" ${utility_files})
|
|
|
|
-set(header_install_dir lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
|
|
+set(header_install_dir tools/llvm/lib/clang/${CLANG_VERSION}/include)
|
|
|
|
#############################################################
|
|
# Install rules for the catch-all clang-resource-headers target
|
|
diff --git a/clang/runtime/CMakeLists.txt b/clang/runtime/CMakeLists.txt
|
|
index 9f4633bc85b1..6d7b70ee0dea 100644
|
|
--- a/clang/runtime/CMakeLists.txt
|
|
+++ b/clang/runtime/CMakeLists.txt
|
|
@@ -84,7 +84,7 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)
|
|
-DLLVM_LIT_ARGS=${LLVM_LIT_ARGS}
|
|
-DCOMPILER_RT_OUTPUT_DIR=${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION}
|
|
-DCOMPILER_RT_EXEC_OUTPUT_DIR=${LLVM_RUNTIME_OUTPUT_INTDIR}
|
|
- -DCOMPILER_RT_INSTALL_PATH:PATH=lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}
|
|
+ -DCOMPILER_RT_INSTALL_PATH:PATH=tools/llvm/lib/clang/${CLANG_VERSION}
|
|
-DCOMPILER_RT_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
|
|
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
|
|
-DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX}
|
|
diff --git a/compiler-rt/cmake/base-config-ix.cmake b/compiler-rt/cmake/base-config-ix.cmake
|
|
index 8a6219568b3f..f9c9f6478280 100644
|
|
--- a/compiler-rt/cmake/base-config-ix.cmake
|
|
+++ b/compiler-rt/cmake/base-config-ix.cmake
|
|
@@ -45,7 +45,7 @@ if (LLVM_TREE_AVAILABLE)
|
|
# Setup the paths where compiler-rt runtimes and headers should be stored.
|
|
set(COMPILER_RT_OUTPUT_DIR ${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION})
|
|
set(COMPILER_RT_EXEC_OUTPUT_DIR ${LLVM_RUNTIME_OUTPUT_INTDIR})
|
|
- set(COMPILER_RT_INSTALL_PATH lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION})
|
|
+ set(COMPILER_RT_INSTALL_PATH tools/llvm/lib/clang/${CLANG_VERSION})
|
|
option(COMPILER_RT_INCLUDE_TESTS "Generate and build compiler-rt unit tests."
|
|
${LLVM_INCLUDE_TESTS})
|
|
option(COMPILER_RT_ENABLE_WERROR "Fail and stop if warning is triggered"
|