2020-07-06 16:13:19 +02:00
|
|
|
# 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
|
2020-07-22 11:53:35 +00:00
|
|
|
version=10.0.1
|
2020-07-23 10:03:32 +00:00
|
|
|
release=2
|
2020-07-22 11:53:35 +00:00
|
|
|
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/$name-$version.src.tar.xz)
|
2020-07-06 16:13:19 +02:00
|
|
|
|
|
|
|
build() {
|
2020-07-22 11:53:35 +00:00
|
|
|
cmake -S $name-$version.src -B build -G Ninja \
|
2020-07-06 16:13:19 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2020-07-23 10:03:32 +00:00
|
|
|
-DCOMPILER_RT_INSTALL_PATH=/usr/lib/clang/$version \
|
2020-07-06 16:13:19 +02:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
|
|
|
-Wno-dev
|
2020-07-22 11:53:35 +00:00
|
|
|
ninja -C build
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2020-07-06 16:13:19 +02:00
|
|
|
}
|