Skip to content

Commit

Permalink
updpatch: rocm-llvm 6.2.2-2
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars committed Nov 10, 2024
1 parent bb1d6c2 commit 9b4b5a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 814 deletions.
27 changes: 2 additions & 25 deletions rocm-llvm/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,31 +1,8 @@
diff --git PKGBUILD PKGBUILD
index 1450a9d..346f15e 100644
index 0f3d538..11296e0 100644
--- PKGBUILD
+++ PKGBUILD
@@ -13,9 +13,11 @@ depends=('rocm-core' 'perl' 'gcc-libs' 'zlib' 'zstd' 'libffi' 'libedit'
makedepends=('cmake' 'python' 'ninja')
_git='https://github.com/ROCm/llvm-project'
source=("${pkgname}-${pkgver}.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
- "${pkgname}-fix-segfault.patch")
+ "${pkgname}-fix-segfault.patch"
+ "${pkgname}-riscv-uleb128.patch")
sha256sums=('7d35acc84de1adee65406f92a369a30364703f84279241c444cd93a48c7eeb76'
- '4d3f198c5422e9987f442c20963223c39b1548ffa00b6c9db81af5070278ce03')
+ '4d3f198c5422e9987f442c20963223c39b1548ffa00b6c9db81af5070278ce03'
+ 'a4dc17071cfc8248f33c74dca14df715710b375e8e1aefc46c4e505334f4bf9b')
options=(staticlibs !lto)
_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)"

@@ -23,6 +25,8 @@ prepare() {
cd "$_dirname"
# https://github.com/ROCm/ROCm/issues/2918
patch -Np1 -i ../"${pkgname}-fix-segfault.patch"
+ # https://github.com/llvm/llvm-project/issues/64102
+ patch -Np1 -i ../"${pkgname}-riscv-uleb128.patch"
}

build() {
@@ -42,7 +46,7 @@ build() {
@@ -30,7 +30,7 @@ build() {
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libunwind'
-DLIBCXX_ENABLE_STATIC=ON
-DLIBCXXABI_ENABLE_STATIC=ON
Expand Down
Loading

0 comments on commit 9b4b5a2

Please sign in to comment.