Skip to content

Commit

Permalink
updpatch: highway 1.2.0-1
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 authored and felixonmars committed Jul 18, 2024
1 parent c4f4204 commit 4826a8a
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions highway/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
diff --git PKGBUILD PKGBUILD
index d59be29..9c383f2 100644
--- PKGBUILD
+++ PKGBUILD
@@ -19,6 +19,7 @@ build() {
@@ -9,8 +9,15 @@ url='https://github.com/google/highway/'
license=('Apache-2.0' 'BSD-3-Clause')
depends=('gcc-libs')
makedepends=('cmake' 'gtest')
-source=("https://github.com/google/highway/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('7e0be78b8318e8bdbf6fa545d2ecb4c90f947df03f7aadc42c1967f019e63343')
+source=("https://github.com/google/highway/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ "highway-disable-RVV-runtime-dispatch.patch::https://github.com/google/highway/commit/c95cc0237d2f7a0f5ca5dc3fb4b5961b2b1dcdfc.patch")
+sha256sums=('7e0be78b8318e8bdbf6fa545d2ecb4c90f947df03f7aadc42c1967f019e63343'
+ '81d2248de29b07fce1a949f7c251d8279687ee38fe8646e131ca7d1ea8a72d6a')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ patch -p1 -i "${srcdir}/highway-disable-RVV-runtime-dispatch.patch"
+}

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

0 comments on commit 4826a8a

Please sign in to comment.