Add -mavx

This commit is contained in:
2025-05-14 09:28:06 -04:00
parent 280962cdd0
commit 9876afafb2

View File

@@ -30,6 +30,10 @@ add_compile_options(
-ffunction-sections -ffunction-sections
-fno-omit-frame-pointer) -fno-omit-frame-pointer)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)
add_compile_options(-mavx)
endif()
add_subdirectory(third_party) add_subdirectory(third_party)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")