Browse Source

Add -march=skylake-avx512 to CFLAGS when the target is Skylake

Should fix 1806 and #1801
tags/v0.3.4
Martin Kroeker GitHub 7 years ago
parent
commit
fa53b903db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      cmake/system.cmake

+ 5
- 0
cmake/system.cmake View File

@@ -41,6 +41,11 @@ if (DEFINED BINARY AND DEFINED TARGET AND BINARY EQUAL 32)
endif ()
endif ()

if (DEFINED TARGET AND ${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512)
set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512")
set (FCOMMON_OPT "${FCOMMON_OPT} -march=skylake-avx512")
endif()

if (DEFINED TARGET)
message(STATUS "Targeting the ${TARGET} architecture.")
set(GETARCH_FLAGS "-DFORCE_${TARGET}")


Loading…
Cancel
Save