From 3d913d653d9bf75ae56b46deeffb28874fedb6d1 Mon Sep 17 00:00:00 2001
From: zhangzikang <zhangzikang@kylinos.cn>
Date: Fri, 17 May 2024 10:03:26 +0800
Subject: [PATCH] Fix build error for loongarch64

---
 third_party/ggml/src/ggml.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/third_party/ggml/src/ggml.c b/third_party/ggml/src/ggml.c
index beb7f46..2374287 100644
--- a/third_party/ggml/src/ggml.c
+++ b/third_party/ggml/src/ggml.c
@@ -299,7 +299,7 @@ typedef double ggml_float;
 #if defined(_MSC_VER) || defined(__MINGW32__)
 #include <intrin.h>
 #else
-#if !defined(__riscv)
+#if !defined(__riscv) && !defined(__loongarch64)
 #include <immintrin.h>
 #endif
 #endif
-- 
2.43.0

