1
0
Fork 0

Allow throwing fp exceptions in Windows 32 bit build.

This commit is contained in:
John Preston 2021-08-24 17:43:07 +03:00
parent 7260711ec5
commit 76ece84e77

View file

@ -45,9 +45,13 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
/bigobj # scheme.cpp has too many sections.
)
else()
target_compile_options(common_options
INTERFACE
/fp:except # Crash-report fp exceptions in 32 bit build.
)
target_link_options(common_options
INTERFACE
/LARGEADDRESSAWARE # Allow more than 2 GB in 32 bit application.ß
/LARGEADDRESSAWARE # Allow more than 2 GB in 32 bit application.
)
endif()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")