diff --git a/llama/ggml-metal.m b/llama/ggml-metal.m index e20b6dde..599db35b 100644 --- a/llama/ggml-metal.m +++ b/llama/ggml-metal.m @@ -1,4 +1,4 @@ -// go:build darwin arm64 +// go:build darwin && arm64 /** * llama.cpp - git 059031b8c40e1f4ba60586842c5b1ed3ddf61842 diff --git a/scripts/sync_llama.sh b/scripts/sync_llama.sh index 3ab6eeb7..a1a863ad 100755 --- a/scripts/sync_llama.sh +++ b/scripts/sync_llama.sh @@ -77,7 +77,7 @@ for IN in $dst_dir/*.{c,h,cpp,m,metal,cu}; do done # ggml-metal -sed -i '' '1s;^;// go:build darwin arm64\n\n;' $dst_dir/ggml-metal.m +sed -i '' '1s;^;// go:build darwin && arm64\n\n;' $dst_dir/ggml-metal.m sed -e '/#include "ggml-common.h"/r ggml-common.h' -e '/#include "ggml-common.h"/d' < $dst_dir/ggml-metal.metal > temp.metal TEMP_ASSEMBLY=$(mktemp) echo ".section __DATA, __ggml_metallib" > $TEMP_ASSEMBLY