Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
Update compiler flag for AARCH64/ARM64 device
  • Loading branch information
oooo26 authored Sep 14, 2024
1 parent e8ecf86 commit 2724e4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if(MSVC)
elseif(DARWIN)
SET(CMAKE_CXX_FLAGS "-Wno-int-in-bool-context -std=c++11")
SET(CMAKE_CXX_FLAGS_DEBUG "-Wall")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
SET(CMAKE_CXX_FLAGS "-march=native -Wno-int-in-bool-context -std=c++11")
SET(CMAKE_CXX_FLAGS_DEBUG "-Wall")
else()
SET(CMAKE_CXX_FLAGS "-march=native -Wno-int-in-bool-context -std=c++11 -mavx -mfma")
SET(CMAKE_CXX_FLAGS_DEBUG "-Wall")
Expand Down

0 comments on commit 2724e4f

Please sign in to comment.