Skip to content

Commit

Permalink
updpatch: highway 1.1.0-1
Browse files Browse the repository at this point in the history
Use new upstream proposed flag to turn off RVV:
google/highway#838
  • Loading branch information
felixonmars committed Mar 8, 2024
1 parent 4db46c9 commit 8109cfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 33 deletions.
14 changes: 0 additions & 14 deletions highway/compile-only-emu128.patch

This file was deleted.

29 changes: 10 additions & 19 deletions highway/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
diff --git PKGBUILD PKGBUILD
index d59be29..9c383f2 100644
--- PKGBUILD
+++ PKGBUILD
@@ -9,8 +9,16 @@ url='https://github.com/google/highway/'
license=('Apache')
depends=('gcc-libs')
makedepends=('cmake' 'gtest')
-source=("https://github.com/google/highway/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('5434488108186c170a5e2fca5e3c9b6ef59a1caa4d520b008a9b8be6b8abe6c5')
+source=("https://github.com/google/highway/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ "compile-only-emu128.patch")
+sha256sums=('5434488108186c170a5e2fca5e3c9b6ef59a1caa4d520b008a9b8be6b8abe6c5'
+ '068ca74f3c33bed3ebd2ea5ef59c42e50b81101809893292335b9a38b47743cf')
+options=(!lto)
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -Np1 -i ../compile-only-emu128.patch
+}

build() {
cmake -B build -S "${pkgname}-${pkgver}" \
@@ -19,6 +19,7 @@ build() {
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DBUILD_SHARED_LIBS:BOOL='ON' \
-DHWY_SYSTEM_GTEST:BOOL='ON' \
+ -DHWY_CMAKE_RVV:BOOL='OFF' \
-Wno-dev
cmake --build build
}

0 comments on commit 8109cfd

Please sign in to comment.