From: Aleksei Nikiforov Date: Sat, 8 Nov 2025 08:00:20 +0000 (+0100) Subject: ggml: disable vxe for cross-compilation by default (llama/16966) X-Git-Tag: upstream/0.9.4.185~10 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b834d8a3473d91b0aa7f2089d68e10085114ed1a;p=pkg%2Fggml%2Fsources%2Fggml ggml: disable vxe for cross-compilation by default (llama/16966) Otherwise compilation will fail due to enabling -mvx -mzvector and not setting corresponding -march options. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 181f179e..869796f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")