Skip to content

Commit

Permalink
Merge pull request supercollider#6116 from Xeonacid/import-sse-detect
Browse files Browse the repository at this point in the history
CMakeLists: only enable SSE on x86 variants
  • Loading branch information
dyfer authored Oct 19, 2023
2 parents 9640dbc + 637d2c7 commit f62e80b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ option(FINAL_BUILD "Build as single source file." OFF)

option(FFT_GREEN "Use internal 'Green' FFT lib rather than FFTW. (Not recommended.)" OFF)

if(NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm|aarch64")
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^AMD64|EM64T|x86_64|X86|i386|i686")
option(SSE "Compile with support for SSE instructions." ON)
option(SSE2 "Compile with support for SSE2 instructions." ON)
else() # ARM platforms do not have SSE
else() # non-x86 platforms do not have SSE
set(SSE OFF)
set(SSE2 OFF)
endif()
Expand Down

0 comments on commit f62e80b

Please sign in to comment.