Mercurial > vanilla
comparison 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 |
comparison
equal
deleted
inserted
replaced
720:100b1ba8672d | 721:034a2a62a9f8 |
---|---|
20 PKGREVISION=1 | 20 PKGREVISION=1 |
21 PKGLICENSE="MIT CUSTOM" | 21 PKGLICENSE="MIT CUSTOM" |
22 PKGSUMMARY="low level virtual machine compiler infrastructure" | 22 PKGSUMMARY="low level virtual machine compiler infrastructure" |
23 PKGDOWNLOAD="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKGVERSION/$PKGNAME-$PKGVERSION.src.tar.xz" | 23 PKGDOWNLOAD="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKGVERSION/$PKGNAME-$PKGVERSION.src.tar.xz" |
24 PKGDEPENDS="lib/ncurses python/python compression/zlib dev/cmake:build" | 24 PKGDEPENDS="lib/ncurses python/python compression/zlib dev/cmake:build" |
25 PKGOPTIONS="DOXYGEN FFI LIBCXX LIBEDIT LIBXML2 LLD NCURSES SPHINX STATIC TARGETS ZLIB" | 25 PKGOPTIONS="DOXYGEN FFI LIBCXX LIBEDIT XML LLD NCURSES SPHINX STATIC TARGETS ZLIB" |
26 | 26 |
27 : ${CHOST:=$(uname -m)-linux-musl} | 27 : ${CHOST:=$(uname -m)-linux-musl} |
28 : ${CC:=clang} | 28 : ${CC:=clang} |
29 : ${CFLAGS:=-O2} | 29 : ${CFLAGS:=-O2} |
30 : ${CXX:=clang++} | 30 : ${CXX:=clang++} |
31 : ${CXXFLAGS:=-O2} | 31 : ${CXXFLAGS:=-O2} |
32 : ${DOXYGEN:=yes} | 32 : ${DOXYGEN:=yes} |
33 : ${FFI:=no} | 33 : ${FFI:=no} |
34 : ${LIBCXX:=yes} | 34 : ${LIBCXX:=yes} |
35 : ${LIBEDIT:=yes} | 35 : ${LIBEDIT:=yes} |
36 : ${LIBXML2:=yes} | 36 : ${XML:=yes} |
37 : ${LLD:=yes} | 37 : ${LLD:=yes} |
38 : ${NCURSES:=yes} | 38 : ${NCURSES:=yes} |
39 : ${SPHINX:=yes} | 39 : ${SPHINX:=yes} |
40 : ${STATIC:=no} | 40 : ${STATIC:=no} |
41 : ${TARGETS:=all} | 41 : ${TARGETS:=all} |
67 with_libedit="-DLLVM_ENABLE_LIBEDIT=On" | 67 with_libedit="-DLLVM_ENABLE_LIBEDIT=On" |
68 else | 68 else |
69 with_libedit="-DLLVM_ENABLE_LIBEDIT=Off" | 69 with_libedit="-DLLVM_ENABLE_LIBEDIT=Off" |
70 fi | 70 fi |
71 | 71 |
72 if [ "$LIBXML2" = "yes" ]; then | 72 if [ "$XML" = "yes" ]; then |
73 PKGDEPENDS="text/libxml2 $PKGDEPENDS" | 73 PKGDEPENDS="text/libxml2 $PKGDEPENDS" |
74 with_libxml2="-DLLVM_ENABLE_LIBXML2=On" | 74 with_xml="-DLLVM_ENABLE_LIBXML2=On" |
75 else | 75 else |
76 with_libxml2="-DLLVM_ENABLE_LIBXML2=Off" | 76 with_xml="-DLLVM_ENABLE_LIBXML2=Off" |
77 fi | 77 fi |
78 | 78 |
79 if [ "$LLD" = "yes" ]; then | 79 if [ "$LLD" = "yes" ]; then |
80 with_lld="-DLLVM_ENABLE_LLD=On" | 80 with_lld="-DLLVM_ENABLE_LLD=On" |
81 else | 81 else |
130 -DLLVM_INSTALL_BINUTILS_SYMLINKS=On \ | 130 -DLLVM_INSTALL_BINUTILS_SYMLINKS=On \ |
131 $with_doxygen \ | 131 $with_doxygen \ |
132 $with_ffi \ | 132 $with_ffi \ |
133 $with_libcxx \ | 133 $with_libcxx \ |
134 $with_libedit \ | 134 $with_libedit \ |
135 $with_libxml2 \ | 135 $with_xml \ |
136 $with_lld \ | 136 $with_lld \ |
137 $with_ncurses \ | 137 $with_ncurses \ |
138 $with_sphinx \ | 138 $with_sphinx \ |
139 $with_static \ | 139 $with_static \ |
140 $with_zlib | 140 $with_zlib |