27 lines
888 B
Plaintext
27 lines
888 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=14.0.6
|
|
release=2
|
|
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/compiler-rt-$version.src.tar.xz
|
|
https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/llvm-$version.src.tar.xz
|
|
remove-include-linux-fs.h.patch)
|
|
build() {
|
|
mv llvm-$version.src llvm
|
|
|
|
patch -Np2 -d $name-$version.src -i $SRC/remove-include-linux-fs.h.patch
|
|
|
|
cmake -S $name-$version.src -B build -G Ninja \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D COMPILER_RT_INSTALL_PATH=/usr/lib/clang/$version \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|