]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml: disable vxe for cross-compilation by default (#16966)
authorAleksei Nikiforov <redacted>
Sat, 8 Nov 2025 08:00:20 +0000 (09:00 +0100)
committerGitHub <redacted>
Sat, 8 Nov 2025 08:00:20 +0000 (16:00 +0800)
Otherwise compilation will fail due to enabling -mvx -mzvector
and not setting corresponding -march options.

ggml/CMakeLists.txt

index 181f179ed171c924ae75ad80cdccd444d351a5cf..869796f0e3be62d3c420cb4b806c2e430094c19c 100644 (file)
@@ -168,7 +168,7 @@ option(GGML_RV_ZFH           "ggml: enable riscv zfh"        ON)
 option(GGML_RV_ZVFH          "ggml: enable riscv zvfh"       ON)
 option(GGML_RV_ZICBOP        "ggml: enable riscv zicbop"     ON)
 option(GGML_XTHEADVECTOR     "ggml: enable xtheadvector"     OFF)
-option(GGML_VXE              "ggml: enable vxe"              ON)
+option(GGML_VXE              "ggml: enable vxe"              ${GGML_NATIVE})
 
 option(GGML_CPU_ALL_VARIANTS "ggml: build all variants of the CPU backend (requires GGML_BACKEND_DL)" OFF)
 set(GGML_CPU_ARM_ARCH        "" CACHE STRING "ggml: CPU architecture for ARM")