mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 19:44:19 +01:00
CMake: Set fp-contract=fast
Clang defaults to off, everyone else defaults to on or fast. Allows multiplies and adds to be merged into fma
This commit is contained in:
1 parent
2d98b877a2
commit
ced58a047d
1 file changed
+6
-1
@@ -38,8 +38,13 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
|
||||
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
|
||||
endif()
|
||||
|
||||
if(NOT MSVC)
|
||||
if(MSVC)
|
||||
if (MSVC_VERSION GREATER_EQUAL 1930)
|
||||
target_compile_options(PCSX2_FLAGS INTERFACE /fp:contract)
|
||||
endif()
|
||||
else()
|
||||
target_compile_options(PCSX2_FLAGS INTERFACE
|
||||
-ffp-contract=fast
|
||||
-fno-strict-aliasing
|
||||
-Wstrict-aliasing # Allow to track strict aliasing issue.
|
||||
-Wno-parentheses
|
||||
|
||||
Reference in new issue
Block a user