31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
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=16.0.6
|
|
release=1
|
|
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
|
|
https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz)
|
|
|
|
build() {
|
|
mv llvm-$version.src llvm
|
|
mv cmake-$version.src cmake
|
|
|
|
cmake -S $name-$version.src -B build -G Ninja \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D COMPILER_RT_INSTALL_PATH=/usr/lib/clang/${version:0:2} \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
#-D COMPILER_RT_INSTALL_BINARY_DIR=/usr/lib/clang/${version:0:2}/bin \
|
|
#-D COMPILER_RT_INSTALL_INCLUDE_DIR=/usr/lib/clang/${version:0:2}/include \
|
|
#-D COMPILER_RT_INSTALL_LIBRARY_DIR=/usr/lib/clang/${version:0:2}/lib \
|
|
#-D COMPILER_RT_INSTALL_DATA_DIR=/usr/lib/clang/${version:0:2}/share \
|
|
}
|