Skip to content

Commit

Permalink
Merge pull request #181 from chocolacula/master
Browse files Browse the repository at this point in the history
Ignore -march=native for arm64 architecture
  • Loading branch information
genivia-inc authored Jun 9, 2023
2 parents 9df17fa + 63cbffc commit 54a6560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/SIMDTestAndSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ endif()

if (${HAVE_NEON})
list(APPEND simd_definitions HAVE_NEON)
if (WIN32 AND MSVC)
# MSVC runs NEON by default according to their docs
if ((${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64|aarch64") OR (WIN32 AND MSVC))
# Arm64 compilers and MSVC runs NEON by default according to their docs
else()
list(APPEND simd_flags "-march=native" "-mfpu=neon")
endif()
Expand Down

0 comments on commit 54a6560

Please sign in to comment.