File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ project(llama_cpp)
4
4
5
5
option (BUILD_LLAMA_CPP "Build llama.cpp shared library and install alongside python package" ON )
6
6
7
- if (APPLE )
8
- set (LLAMA_AVX ON CACHE BOOL )
9
- set (LLAMA_AVX2 OFF CACHE BOOL )
10
- set (LLAMA_FMA OFF CACHE BOOL )
11
- set (LLAMA_F16C OFF CACHE BOOL )
12
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native" )
13
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native" )
14
- endif ()
15
7
16
8
if (BUILD_LLAMA_CPP )
17
9
set (BUILD_SHARED_LIBS "On" )
18
10
add_subdirectory (vendor/llama.cpp )
11
+ if (APPLE )
12
+ set (LLAMA_AVX OFF )
13
+ set (LLAMA_AVX2 OFF )
14
+ set (LLAMA_FMA OFF )
15
+ set (LLAMA_F16C OFF )
16
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native" )
17
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native" )
18
+ endif ()
19
19
install (
20
20
TARGETS llama
21
21
LIBRARY DESTINATION ${SKBUILD_PLATLIB_DIR} /llama_cpp
You can’t perform that action at this time.
0 commit comments