Browse Source

Avoid setting x86-specific getarch flags on non-x86

pull/2165/head
Martin Kroeker GitHub 7 years ago
parent
commit
96f53db397
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      cmake/system.cmake

+ 2
- 0
cmake/system.cmake View File

@@ -71,9 +71,11 @@ if (X86_64)
endif ()

# On x86 no AVX support is available
if (X86 OR X86_64)
if ((DEFINED BINARY AND BINARY EQUAL 32) OR ("$CMAKE_SIZEOF_VOID_P}" EQUAL "4"))
set(GETARCH_FLAGS "${GETARCH_FLAGS} -DNO_AVX -DNO_AVX2 -DNO_AVX512")
endif ()
endif ()

if (INTERFACE64)
message(STATUS "Using 64-bit integers.")


Loading…
Cancel
Save