diff dev/llvm/llvm.sh @ 721:034a2a62a9f8

vanilla: consolidate options with lint-options.sh
author David Demelier <markand@malikania.fr>
date Mon, 05 Aug 2019 13:19:31 +0200
parents 3c112022e2a2
children ddd41f0f18ee
line wrap: on
line diff
--- a/dev/llvm/llvm.sh	Mon Aug 05 12:41:20 2019 +0200
+++ b/dev/llvm/llvm.sh	Mon Aug 05 13:19:31 2019 +0200
@@ -22,7 +22,7 @@
 PKGSUMMARY="low level virtual machine compiler infrastructure"
 PKGDOWNLOAD="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKGVERSION/$PKGNAME-$PKGVERSION.src.tar.xz"
 PKGDEPENDS="lib/ncurses python/python compression/zlib dev/cmake:build"
-PKGOPTIONS="DOXYGEN FFI LIBCXX LIBEDIT LIBXML2 LLD NCURSES SPHINX STATIC TARGETS ZLIB"
+PKGOPTIONS="DOXYGEN FFI LIBCXX LIBEDIT XML LLD NCURSES SPHINX STATIC TARGETS ZLIB"
 
 : ${CHOST:=$(uname -m)-linux-musl}
 : ${CC:=clang}
@@ -33,7 +33,7 @@
 : ${FFI:=no}
 : ${LIBCXX:=yes}
 : ${LIBEDIT:=yes}
-: ${LIBXML2:=yes}
+: ${XML:=yes}
 : ${LLD:=yes}
 : ${NCURSES:=yes}
 : ${SPHINX:=yes}
@@ -69,11 +69,11 @@
 	with_libedit="-DLLVM_ENABLE_LIBEDIT=Off"
 fi
 
-if [ "$LIBXML2" = "yes" ]; then
+if [ "$XML" = "yes" ]; then
 	PKGDEPENDS="text/libxml2 $PKGDEPENDS"
-	with_libxml2="-DLLVM_ENABLE_LIBXML2=On"
+	with_xml="-DLLVM_ENABLE_LIBXML2=On"
 else
-	with_libxml2="-DLLVM_ENABLE_LIBXML2=Off"
+	with_xml="-DLLVM_ENABLE_LIBXML2=Off"
 fi
 
 if [ "$LLD" = "yes" ]; then
@@ -132,7 +132,7 @@
 		$with_ffi \
 		$with_libcxx \
 		$with_libedit \
-		$with_libxml2 \
+		$with_xml \
 		$with_lld \
 		$with_ncurses \
 		$with_sphinx \