Skip to content

Commit 08416eb

Browse files
ggml: disable vxe for cross-compilation by default (ggml-org#16966)
Otherwise compilation will fail due to enabling -mvx -mzvector and not setting corresponding -march options.
1 parent b4e335d commit 08416eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ option(GGML_RV_ZFH "ggml: enable riscv zfh" ON)
168168
option(GGML_RV_ZVFH "ggml: enable riscv zvfh" ON)
169169
option(GGML_RV_ZICBOP "ggml: enable riscv zicbop" ON)
170170
option(GGML_XTHEADVECTOR "ggml: enable xtheadvector" OFF)
171-
option(GGML_VXE "ggml: enable vxe" ON)
171+
option(GGML_VXE "ggml: enable vxe" ${GGML_NATIVE})
172172

173173
option(GGML_CPU_ALL_VARIANTS "ggml: build all variants of the CPU backend (requires GGML_BACKEND_DL)" OFF)
174174
set(GGML_CPU_ARM_ARCH "" CACHE STRING "ggml: CPU architecture for ARM")

0 commit comments

Comments
 (0)