Skip to content

Commit

Permalink
Merge pull request #2454 from mkuron/patch-10
Browse files Browse the repository at this point in the history
prevent 80-bit arithmetic on old Intel processors
  • Loading branch information
RudolfWeeber committed Jan 21, 2019
2 parents 99bc066 + 313916c commit 9eda4d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Intel" AND CMAKE_CXX_COMPILER_VERSION VERSIO
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_NO_CXX11_VARIADIC_TEMPLATES")
endif()

# prevent 80-bit arithmetic on old Intel processors
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SIZEOF_VOID_P EQUAL 4 AND CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffloat-store")
endif()

set(CMAKE_MACOSX_RPATH TRUE)

if( WITH_ASAN AND WITH_MSAN )
Expand Down

0 comments on commit 9eda4d2

Please sign in to comment.