string options

This commit is contained in:
Andrei Betlen 2023-09-12 18:35:34 -04:00
parent 2c3df160fb
commit 4cb0e35b64

View file

@ -8,10 +8,10 @@ option(LLAMA_BUILD "Build llama.cpp shared library and install alongside python
if (LLAMA_BUILD) if (LLAMA_BUILD)
set(BUILD_SHARED_LIBS "On") set(BUILD_SHARED_LIBS "On")
if (APPLE) if (APPLE)
set(LLAMA_AVX OFF) set(LLAMA_AVX "Off")
set(LLAMA_AVX2 OFF) set(LLAMA_AVX2 "Off")
set(LLAMA_FMA OFF) set(LLAMA_FMA "Off")
set(LLAMA_F16C OFF) set(LLAMA_F16C "Off")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -mtune=native")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native")
endif() endif()