Skip to content

Commit afe36e5

Browse files
committed
TheSuperHackers @fix Disable FMA contraction for cross-platform deterministic math parity
1 parent ae08fa9 commit afe36e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmake/compilers.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ if (NOT IS_VS6_BUILD)
5151
add_compile_options(/Zc:__cplusplus)
5252
else()
5353
add_compile_options(-Wsuggest-override)
54+
# TheSuperHackers @fix Prevent FMA contraction (a*b+c -> fmadd) which skips intermediate
55+
# rounding and breaks cross-platform deterministic math parity with MSVC (/fp:precise).
56+
add_compile_options(-ffp-contract=off)
5457
endif()
5558
else()
5659
if(RTS_BUILD_OPTION_VC6_FULL_DEBUG)

0 commit comments

Comments
 (0)