31 lines
977 B
Plaintext
31 lines
977 B
Plaintext
# Description: LLVM Framework for High-Level Loop and Data-Locality Optimizations
|
|
# URL: https://polly.llvm.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: llvm
|
|
|
|
name=polly
|
|
version=16.0.4
|
|
release=1
|
|
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/polly-$version.src.tar.xz
|
|
https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz)
|
|
|
|
build() {
|
|
mv cmake-$version.src cmake
|
|
|
|
cmake -S $name-$version.src -B build -G Ninja \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D LLVM_LIBDIR_SUFFIX= \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D LLVM_LINK_LLVM_DYLIB=ON \
|
|
-D CMAKE_SKIP_RPATH=ON \
|
|
-D LLVM_EXTERNAL_LIT=/usr/bin/lit \
|
|
-D LLVM_PARALLEL_COMPILE_JOBS="$(echo "$MAKEFLAGS" | grep -o '[0-9]*')" \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
# cmake --build build --target check-polly
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|