CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
llvm: synced with upstream
[ports/opt-arm.git] / llvm / Pkgfile
CommitLineData
d84197c7 1# Description: LLVM compiler backend
f405f08a
VM
2# URL: http://llvm.org/
3# Maintainer: Thomas Penteker, tek at serverop dot de
4# Depends on: cmake libffi libxml2 ninja
5# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
d84197c7
VM
6
7name=llvm
f405f08a
VM
8version=12.0.1
9release=2
d84197c7
VM
10source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/$name-$version.src.tar.xz)
11
12build() {
13 export CC=gcc
14 export CXX=g++
15
16 cd $name-$version.src
17
18 mkdir build
19 cd build
20
21 cmake .. -G Ninja \
22 -DLLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \
23 -DLLVM_ENABLE_CXX1Y=1 \
24 -DLLVM_INCLUDE_EXAMPLES=0 \
25 -DLLVM_INCLUDE_TESTS=0 \
26 -DLLVM_ENABLE_FFI=1 \
27 -DLLVM_ENABLE_RTTI=1 \
28 -DLLVM_ENABLE_OCAMLDOC=0 \
b0313a42 29 -DLLVM_TARGETS_TO_BUILD='ARM' \
f405f08a 30 -DLLVM_BINUTILS_INCDIR=/usr/include \
d84197c7
VM
31 -DLLVM_BUILD_LLVM_DYLIB=1 \
32 -DLLVM_LINK_LLVM_DYLIB=1 \
33 -DLLVM_INSTALL_UTILS=1 \
34 -DCMAKE_BUILD_TYPE=Release \
35 -DCMAKE_INSTALL_PREFIX=/usr \
36 -DLLVM_APPEND_VC_REV=0 \
37 -Wno-dev
38
39 ninja
40 DESTDIR=$PKG ninja install
41}