]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
Fix architecture detection
authorMathieu Baudier <redacted>
Mon, 18 Aug 2025 10:54:50 +0000 (12:54 +0200)
committerMathieu Baudier <redacted>
Mon, 18 Aug 2025 10:54:50 +0000 (12:54 +0200)
debian/rules

index 490b7b2f71d4d3344c9d0bb14aa0ec331b0e28ec..af95b2dd76c25d7c27bb8cc453d94e7690ed2321 100755 (executable)
@@ -2,6 +2,9 @@
 #export DH_VERBOSE = 1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+# For multiarch
+include /usr/share/dpkg/architecture.mk
+# For DEB_VERSION_UPSTREAM
 include /usr/share/dpkg/pkg-info.mk
 GGML_BUILD_NUMBER=$(subst 0.0.,,$(DEB_VERSION_UPSTREAM))
 
@@ -22,7 +25,7 @@ CMAKE_OPTS += -DGGML_CPU_ALL_VARIANTS=ON \
               -DGGML_BLAS_VENDOR=OpenBLAS \
               -DGGML_RPC=ON \
 
-ifeq ($(DEB_HOST_ARCH),aarch64)
+ifeq ($(DEB_TARGET_ARCH),arm64)
 CMAKE_OPTS += -DGGML_CPU_ALL_VARIANTS=OFF \
               -DGGML_CPU_ARM_ARCH=armv8-a