Skip to content

Commit e3387e4

Browse files
committed
Add explanatory comment
1 parent e65a823 commit e3387e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ option(LLAMA_BUILD "Build llama.cpp shared library and install alongside python
88
if (LLAMA_BUILD)
99
set(BUILD_SHARED_LIBS "On")
1010
if (APPLE)
11+
# Need to disable these llama.cpp flags on Apple
12+
# otherwise users may encounter invalid instruction errors
1113
set(LLAMA_AVX "Off" CACHE BOOL "llama: enable AVX" FORCE)
1214
set(LLAMA_AVX2 "Off" CACHE BOOL "llama: enable AVX2" FORCE)
1315
set(LLAMA_FMA "Off" CACHE BOOL "llama: enable FMA" FORCE)

0 commit comments

Comments
 (0)