From a8eb797a43c3b9e1702f3031d91060d145b539d3 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 16 Sep 2021 16:16:47 -0700 Subject: [PATCH] Remove -fabi-version=6 flag from AVX512 builds. It was added to fix builds with gcc 4.9, but these don't even work today, and the flag breaks compilation with newer versions of gcc. (cherry picked from commit 1239adfcab1647482329a1c52396e52fca19f893) --- CMakeLists.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f3e69b845..0d1ead92f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,18 +253,12 @@ if(NOT MSVC) option(EIGEN_TEST_AVX512 "Enable/Disable AVX512 in tests/examples" OFF) if(EIGEN_TEST_AVX512) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx512f -mfma") - if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fabi-version=6") - endif() message(STATUS "Enabling AVX512 in tests/examples") endif() option(EIGEN_TEST_AVX512DQ "Enable/Disable AVX512DQ in tests/examples" OFF) if(EIGEN_TEST_AVX512DQ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx512dq") - if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fabi-version=6") - endif() message(STATUS "Enabling AVX512DQ in tests/examples") endif()