Workaround gcc's default ABI not being able to distinghish between vector types of different sizes.

This commit is contained in:
Gael Guennebaud
2014-04-22 16:03:19 +02:00
parent 2606abed53
commit 5c5231ab71
4 changed files with 63 additions and 40 deletions

View File

@@ -199,9 +199,6 @@ if(NOT MSVC)
option(EIGEN_TEST_AVX "Enable/Disable AVX in tests/examples" OFF)
if(EIGEN_TEST_AVX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx")
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fabi-version=6")
endif()
message(STATUS "Enabling AVX in tests/examples")
endif()