opt/compiler-rt/Pkgfile

21 lines
611 B
Plaintext

# Description: Compiler runtime libraries for clang
# URL: https://compiler-rt.llvm.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: llvm
name=compiler-rt
version=11.0.0
release=1
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/$name-$version.src.tar.xz)
build() {
cmake -S $name-$version.src -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCOMPILER_RT_INSTALL_PATH=/usr/lib/clang/$version \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-Wno-dev
ninja -C build
DESTDIR=$PKG ninja -C build install
}