summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorsten Ke├čler2020-08-22 18:13:33 +0200
committeracxz2020-08-22 20:07:40 -0400
commit49b61be7b403dde329e3f52c996e6cd5de81a485 (patch)
tree83424cf19ed9356fae5d73248591953ec756dabd
parent9f24c80c268b463e11efaf6ecb0dfc11655463d9 (diff)
downloadaur-49b61be7b403dde329e3f52c996e6cd5de81a485.tar.gz
[llvm-amdgpu] Update to 3.7.0 (#368)
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD24
2 files changed, 10 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af368ac1f3d..d43ef771447 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = llvm-amdgpu
pkgdesc = Radeon Open Compute - LLVM toolchain (llvm, clang, lld)
- pkgver = 3.5.1
+ pkgver = 3.7.0
pkgrel = 1
url = https://github.com/RadeonOpenCompute/llvm-project
arch = x86_64
@@ -8,8 +8,8 @@ pkgbase = llvm-amdgpu
makedepends = cmake
makedepends = python
depends = z3
- source = llvm-amdgpu-3.5.1.tar.gz::https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-3.5.1.tar.gz
- sha256sums = 9ccfdd2b97a2848856cda1f67212145a5b8e2c6b802530c84341ea6e33658658
+ source = llvm-amdgpu-3.7.0.tar.gz::https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-3.7.0.tar.gz
+ sha256sums = 3e2542ce54b91b5c841f33d542143e0e43eae95e8785731405af29f08ace725b
pkgname = llvm-amdgpu
diff --git a/PKGBUILD b/PKGBUILD
index 83b663c6d1b..779bfa3c4af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=llvm-amdgpu
pkgdesc='Radeon Open Compute - LLVM toolchain (llvm, clang, lld)'
-pkgver=3.5.1
+pkgver=3.7.0
pkgrel=1
arch=('x86_64')
url='https://github.com/RadeonOpenCompute/llvm-project'
@@ -10,31 +10,21 @@ license=('custom:Apache 2.0 with LLVM Exception')
depends=(z3)
makedepends=(cmake python)
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz")
-sha256sums=('9ccfdd2b97a2848856cda1f67212145a5b8e2c6b802530c84341ea6e33658658')
+sha256sums=('3e2542ce54b91b5c841f33d542143e0e43eae95e8785731405af29f08ace725b')
_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
build() {
- # building LLVM/Clang requires ~1.5G per unit
- THREADS=$(( ($(getconf _PHYS_PAGES) * $(getconf PAGESIZE)) / 1610612736 ))
- if [ "$THREADS" -lt 1 ]; then
- THREADS=1
- fi
- NPROC=$(nproc)
- if [ "$THREADS" -gt $(nproc) ]; then
- THREADS="$NPROC"
- fi
-
- cmake -DCMAKE_INSTALL_PREFIX='/opt/rocm/llvm' \
+ cmake -Wno-dev -S "$_dirname/llvm" \
+ -DCMAKE_INSTALL_PREFIX='/opt/rocm/llvm' \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_HOST_TRIPLE=$CHOST \
-DLLVM_BUILD_UTILS=ON \
-DLLVM_ENABLE_BINDINGS=OFF \
-DLLVM_ENABLE_OCAMLDOC=OFF \
- -DLLVM_ENABLE_PROJECTS='llvm;clang;lld' \
+ -DLLVM_ENABLE_PROJECTS='llvm;clang;compiler-rt;lld' \
-DLLVM_TARGETS_TO_BUILD='AMDGPU;X86' \
- -DOCAMLFIND=NO \
- "$_dirname/llvm"
- MAKEFLAGS="$MAKEFLAGS -j$THREADS" make
+ -DOCAMLFIND=NO
+ make
}
check() {