blob: f35749f9c640eac5b4af82d88168cc60ad68e634 (
plain)
1 # Description: Linker from the LLVM project
2 # URL: https:lld.//llvm.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: llvm
5
6 name=lld
7 version=11.0.1
8 release=1
9 source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/$name-$version.src.tar.xz)
10
11 build() {
12 cmake -H$name-$version.src -Bbuild -G Ninja \
13 -DCMAKE_INSTALL_PREFIX=/usr \
14 -DCMAKE_BUILD_TYPE=Release \
15 -DLLVM_LINK_LLVM_DYLIB=ON \
16 -DLLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \
17 -Wno-dev
18
19 cmake --build build
20 DESTDIR=$PKG cmake --install build
21 }
|