Skip to content

Commit

Permalink
Fix #10926 - Disable fused floating point operations
Browse files Browse the repository at this point in the history
read https://clang.llvm.org/docs/UsersManual.html#cmdoption-ffp-contract

Clang, unlike GCC, sets that to on by default.
  • Loading branch information
jmarrec committed Feb 10, 2025
1 parent a339be9 commit 8d94872
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ elseif(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" O
endif()
target_compile_options(project_warnings INTERFACE -Wno-vexing-parse)
target_compile_options(project_warnings INTERFACE -Wno-invalid-source-encoding)
target_compile_options(project_fp_options INTERFACE -ffp-contract=off)
endif()

set(need_arithm_debug_genex "$<OR:$<BOOL:${FORCE_DEBUG_ARITHM_GCC_OR_CLANG}>,$<CONFIG:Debug>>")
Expand Down

3 comments on commit 8d94872

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10926-Diff-Apple (jmarrec) - x86_64-Linux-Ubuntu-24.04-gcc-13.3: OK (2959 of 2959 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10926-Diff-Apple (jmarrec) - x86_64-Linux-Ubuntu-24.04-gcc-13.3-UnitTestsCoverage-RelWithDebInfo: OK (2141 of 2141 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10926-Diff-Apple (jmarrec) - x86_64-Linux-Ubuntu-24.04-gcc-13.3-IntegrationCoverage-RelWithDebInfo: OK (802 of 802 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.