This commit is contained in:
Andrei Betlen 2023-09-12 17:20:57 -04:00
parent f93fb30f5c
commit 010a50168c

View file

@ -5,8 +5,8 @@ project(llama_cpp)
option(BUILD_LLAMA_CPP "Build llama.cpp shared library and install alongside python package" ON) option(BUILD_LLAMA_CPP "Build llama.cpp shared library and install alongside python package" ON)
if (APPLE) if (APPLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native")
endif() endif()
if (BUILD_LLAMA_CPP) if (BUILD_LLAMA_CPP)