blob: 2b02e93870d6c6f4b49854e42e92092517d2bc32 (
plain)
1 # Description: LLVM Framework for High-Level Loop and Data-Locality Optimizations
2 # URL: https://polly.llvm.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: llvm
5
6 name=polly
7 version=15.0.7
8 release=1
9 source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/polly-$version.src.tar.xz
10 https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz)
11
12 build() {
13 cp -r $SRC/cmake-$version.src/Modules/* $name-$version.src/cmake/.
14
15 cmake -S $name-$version.src -B build -G Ninja \
16 -D CMAKE_INSTALL_PREFIX=/usr \
17 -D LLVM_LIBDIR_SUFFIX= \
18 -D CMAKE_BUILD_TYPE=Release \
19 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
20 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
21 -D LLVM_LINK_LLVM_DYLIB=ON \
22 -D CMAKE_SKIP_RPATH=ON \
23 -D LLVM_EXTERNAL_LIT=/usr/bin/lit \
24 -D LLVM_PARALLEL_COMPILE_JOBS="$(echo "$MAKEFLAGS" | grep -o '[0-9]*')" \
25 -Wno-dev
26
27 cmake --build build
28 # cmake --build build --target check-polly
29 DESTDIR=$PKG cmake --install build
30 }
|