Skip to content

Commit

Permalink
🧹 llvm-bolt: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jan 10, 2024
1 parent ffd149d commit 049e23d
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions llvm-bolt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,40 @@ pkgname=llvm-bolt
pkgver=17.0.6
pkgrel=1
pkgdesc='a post-link optimizer developed to speed up large applications'
arch=('x86_64')
url="https://github.com/llvm/llvm-project/tree/main/bolt"
license=('custom:Apache 2.0 with LLVM Exception')
arch=('x86_64')
makedepends=('clang' 'cmake' 'ninja' 'llvm')
options=(!lto)
source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-project-$pkgver.src.tar.xz"{,.sig})
sha512sums=('6d85bf749e0d77553cc215cbfa61cec4ac4f4f652847f56f946b6a892a99a5ea40b6ab8b39a9708a035001f007986941ccf17e4635260a8b0c1fa59e78d41e30'
'SKIP')
validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <[email protected]>

prepare() {
mkdir -p build
}

build() {
cd build

cmake \
-G Ninja \
cmake -S "llvm-project-$pkgver.src/llvm" -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DLLVM_INSTALL_UTILS=ON \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DLLVM_LINK_LLVM_DYLIB:BOOL=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DLLVM_LINK_LLVM_DYLIB=OFF \
-DLLVM_EXTERNAL_LIT=/usr/bin/lit \
-DLLVM_ENABLE_PROJECTS="bolt" \
-DLLVM_TARGETS_TO_BUILD="X86;AArch64" \
../llvm-project-$pkgver.src/llvm
ninja bolt
-DLLVM_TARGETS_TO_BUILD="X86;AArch64"
# why do we need aarch64 here? we dont support it

ninja -C build bolt
}

check() {
ninja check-bolt
ninja -C build check-bolt
}

package () {
DESTDIR="$pkgdir" ninja -C build install-bolt
}

# vim:set sw=2 sts=2 et:

0 comments on commit 049e23d

Please sign in to comment.