aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/llvm/CONTROL2
-rw-r--r--ports/llvm/fix-linux-build.patch13
-rw-r--r--ports/llvm/portfile.cmake1
3 files changed, 15 insertions, 1 deletions
diff --git a/ports/llvm/CONTROL b/ports/llvm/CONTROL
index d7ee8524b..9a49e3cc2 100644
--- a/ports/llvm/CONTROL
+++ b/ports/llvm/CONTROL
@@ -1,5 +1,5 @@
Source: llvm
-Version: 8.0.0
+Version: 8.0.0-1
Homepage: https://llvm.org/
Description: The LLVM Compiler Infrastructure
Build-Depends: atlmfc (windows)
diff --git a/ports/llvm/fix-linux-build.patch b/ports/llvm/fix-linux-build.patch
new file mode 100644
index 000000000..780ea6535
--- /dev/null
+++ b/ports/llvm/fix-linux-build.patch
@@ -0,0 +1,13 @@
+diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
+index 900c35e..78fd3cd 100644
+--- a/cmake/config-ix.cmake
++++ b/cmake/config-ix.cmake
+@@ -154,7 +154,7 @@ if(NOT LLVM_USE_SANITIZER MATCHES "Memory.*")
+ else()
+ include_directories(${LIBXML2_INCLUDE_DIR})
+ endif()
+- set(LIBXML2_LIBS "xml2")
++ set(LIBXML2_LIBS ${LIBXML2_LIBRARIES})
+ endif()
+ endif()
+ endif()
diff --git a/ports/llvm/portfile.cmake b/ports/llvm/portfile.cmake
index 891e41738..07c9d9ad1 100644
--- a/ports/llvm/portfile.cmake
+++ b/ports/llvm/portfile.cmake
@@ -31,6 +31,7 @@ vcpkg_apply_patches(
PATCHES
install-cmake-modules-to-share.patch
fix-build-error.patch
+ fix-linux-build.patch
)
vcpkg_find_acquire_program(PYTHON3)