From b3bfea6dbfb6ed9ce18f9a2723e0a9e4bd1da7ad Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Sat, 6 Apr 2024 01:36:53 -0400 Subject: [PATCH] fix: Always embed metal library. Closes #1332 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7415149..70f9b99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ if (LLAMA_BUILD) set(LLAMA_F16C "Off" CACHE BOOL "llama: enable F16C" FORCE) endif() - if (APPLE AND CMAKE_SYSTEM_PROCESSOR MATCHES "arm64") + if (APPLE) set(LLAMA_METAL_EMBED_LIBRARY "On" CACHE BOOL "llama: embed metal library" FORCE) endif()