Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,13 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
# breaks std::isinf(), std::isnan(), etc.
string(APPEND CMAKE_C_FLAGS " -fno-fast-math")
string(APPEND CMAKE_CXX_FLAGS " -fno-fast-math")
endif ()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13 AND
CMAKE_SIZEOF_VOID_P EQUAL 4)
# GCC 13 and later changed their C++ excess precision support, which impacts
# 32-bit builds. This restores the previous behavior.
string(APPEND CMAKE_CXX_FLAGS " -fexcess-precision=fast")
endif()

# Add other supported compiler flags
if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang"))
Expand Down
2 changes: 1 addition & 1 deletion ci/linux_gcc_32bit/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export TRAVIS_OS_NAME=linux
export BUILD_NAME=linux_gcc_32bit
export TRAVIS_BUILD_DIR="$WORK_DIR"

GCC_VERSION=12
GCC_VERSION=13

ARCH=i386

Expand Down
Loading