Skip to content

Commit

Permalink
Disable SVE on MacOS/Darwin
Browse files Browse the repository at this point in the history
Macs do not implement SVE yet and Darwin does not support it.
Should solve shibatch#425 and shibatch#487.
  • Loading branch information
blapie committed Feb 8, 2024
1 parent 64f5d97 commit e9e821f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,9 @@ endif()
option(SLEEF_DISABLE_SVE "Disable SVE" OFF)
option(SLEEF_ENFORCE_SVE "Build fails if SVE is not supported by the compiler" OFF)

if(SLEEF_ARCH_AARCH64 AND NOT SLEEF_DISABLE_SVE)
# Darwin does not support SVE yet (see issue #474),
# therefore we disable SVE on Darwin systems.
if(SLEEF_ARCH_AARCH64 AND NOT SLEEF_DISABLE_SVE AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
string (REPLACE ";" " " CMAKE_REQUIRED_FLAGS "${FLAGS_ENABLE_SVE}")
CHECK_C_SOURCE_COMPILES("
#include <arm_sve.h>
Expand Down

0 comments on commit e9e821f

Please sign in to comment.