Skip to content

Commit 4bc5ded

Browse files
lkorencekilmer
andauthored
port:llvm-1{3,4}: Add patch 0021-fix-find_dependency.patch to portfile. (#943)
* port:llvm-14: Add patch 0021-fix-find_dependency.patch to portfile. * Add forgotten patch to llvm-13 * More complete LLVM 14 patch Co-authored-by: Eric Kilmer <[email protected]>
1 parent 24d27ae commit 4bc5ded

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

ports/llvm-13/portfile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ vcpkg_from_github(
1818
0010-fix-libffi.patch
1919
0011-fix-libxml2.patch
2020
0020-fix-FindZ3.cmake.patch
21+
0021-fix-find_dependency.patch
2122
0022-llvm-config-bin-path.patch
2223
0023-clang-sys-include-dir-path.patch
2324
0024-remove-elf_relocation-checks.patch

ports/llvm-13/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "llvm-13",
33
"version": "13.0.1",
4-
"port-version": 3,
4+
"port-version": 4,
55
"description": "The LLVM Compiler Infrastructure.",
66
"homepage": "https://llvm.org",
77
"supports": "!uwp & !(arm & windows)",

ports/llvm-14/0021-fix-find_dependency.patch

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
11
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
2-
index e1540ff316f7..9c8239094aca 100644
2+
index e1540ff316f7..8d7737d07218 100644
33
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
44
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
5-
@@ -67,18 +67,22 @@ set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
5+
@@ -53,32 +53,35 @@ set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
6+
7+
set(LLVM_ENABLE_FFI @LLVM_ENABLE_FFI@)
8+
if(LLVM_ENABLE_FFI)
9+
- find_package(FFI)
10+
+ find_dependency(FFI)
11+
endif()
12+
13+
set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
14+
15+
set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
16+
if(LLVM_ENABLE_TERMINFO)
17+
- find_package(Terminfo)
18+
+ find_dependency(Terminfo)
19+
endif()
20+
21+
set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
622

723
set(LLVM_ENABLE_UNWIND_TABLES @LLVM_ENABLE_UNWIND_TABLES@)
824

925
+include(CMakeFindDependencyMacro)
1026
set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
1127
if(LLVM_ENABLE_ZLIB)
1228
- set(ZLIB_ROOT @ZLIB_ROOT@)
29+
- find_package(ZLIB)
1330
+ find_dependency(ZLIB)
14-
find_package(ZLIB)
1531
endif()
1632

1733
set(LLVM_ENABLE_LIBXML2 @LLVM_ENABLE_LIBXML2@)

ports/llvm-14/portfile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ vcpkg_from_github(
1616
0010-fix-libffi.patch
1717
0011-fix-install-bolt.patch
1818
0020-fix-FindZ3.cmake.patch
19+
0021-fix-find_dependency.patch
1920
0023-clang-sys-include-dir-path.patch
2021
0024-remove-elf_relocation-checks.patch
2122
)

ports/llvm-14/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "llvm-14",
33
"version": "14.0.3",
4-
"port-version": 1,
4+
"port-version": 2,
55
"description": "The LLVM Compiler Infrastructure.",
66
"homepage": "https://llvm.org",
77
"supports": "!uwp & !(arm & windows)",

0 commit comments

Comments
 (0)