diff options
author | Jakub Klinkovský | 2021-06-06 19:56:57 +0200 |
---|---|---|
committer | GitHub | 2021-06-06 19:56:57 +0200 |
commit | 2a046f2166df7396a6acb0f965851c96b1b824b2 (patch) | |
tree | 4ad0e6c77aa11827cad210f9b60bae6b39e8eb8d | |
parent | 1a836b482400feabae8a760f8817796ae46b560e (diff) | |
download | aur-2a046f2166df7396a6acb0f965851c96b1b824b2.tar.gz |
[llvm-amdgpu] fix compatibility with GCC 11 (#608)
fixes #606
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 15 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = llvm-amdgpu pkgdesc = Radeon Open Compute - LLVM toolchain (llvm, clang, lld) pkgver = 4.2.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/RadeonOpenCompute/llvm-project arch = x86_64 license = custom:Apache 2.0 with LLVM Exception @@ -11,6 +11,8 @@ pkgbase = llvm-amdgpu depends = z3 options = staticlibs source = llvm-amdgpu-4.2.0.tar.gz::https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-4.2.0.tar.gz + source = libstdc++-11.1.0-workaround.patch::https://reviews.llvm.org/file/data/77rbtfy27xsj2sgfygq5/PHID-FILE-7vya6mqfpldq7sohw56a/file sha256sums = 751eca1d18595b565cfafa01c3cb43efb9107874865a60c80d6760ba83edb661 + sha256sums = c874456a8a616735bf524772f7ca229d8e59d9775b2b5f19d734df1afda57d11 pkgname = llvm-amdgpu @@ -4,17 +4,26 @@ pkgname=llvm-amdgpu pkgdesc='Radeon Open Compute - LLVM toolchain (llvm, clang, lld)' pkgver=4.2.0 -pkgrel=1 +pkgrel=2 arch=('x86_64') url='https://github.com/RadeonOpenCompute/llvm-project' license=('custom:Apache 2.0 with LLVM Exception') depends=(z3) makedepends=(cmake python ninja) -source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz") -sha256sums=('751eca1d18595b565cfafa01c3cb43efb9107874865a60c80d6760ba83edb661') +source=("${pkgname}-${pkgver}.tar.gz::$url/archive/rocm-$pkgver.tar.gz" + "libstdc++-11.1.0-workaround.patch::https://reviews.llvm.org/file/data/77rbtfy27xsj2sgfygq5/PHID-FILE-7vya6mqfpldq7sohw56a/file") +sha256sums=('751eca1d18595b565cfafa01c3cb43efb9107874865a60c80d6760ba83edb661' + 'c874456a8a616735bf524772f7ca229d8e59d9775b2b5f19d734df1afda57d11') options=(staticlibs) _dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)" +prepare() { + cd "$_dirname" + + # fix compatibility with GCC 11: https://github.com/ROCmSoftwarePlatform/rocBLAS/issues/1191#issuecomment-851634017 + patch -Np1 < "$srcdir/libstdc++-11.1.0-workaround.patch" +} + build() { cmake -GNinja \ -Wno-dev \ |