Skip to content

Commit

Permalink
Revert "[CMake] Additional floating point compiler flag specification"
Browse files Browse the repository at this point in the history
This reverts commit d98ee84.
  • Loading branch information
past-due committed Oct 15, 2023
1 parent b2ab257 commit 18c4fbc
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,26 +229,6 @@ if (HAS_CXXFLAG_FSTACK_CLASH_PROTECTION AND NOT (MINGW OR APPLE))
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-clash-protection")
endif()

# Global floating-point compiler settings
if (CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
# Enable -ffp-contract=off (if supported)
check_c_compiler_flag(-ffp-contract=off HAS_CFLAG_FFP_CONTRACT_OFF)
if (HAS_CFLAG_FFP_CONTRACT_OFF)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffp-contract=off")
endif()
elseif (CMAKE_C_COMPILER_ID STREQUAL "MSVC")
# MSVC defaults to /fp:precise
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
check_cxx_compiler_flag(-ffp-contract=off HAS_CXXFLAG_FFP_CONTRACT_OFF)
if (HAS_CXXFLAG_FFP_CONTRACT_OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffp-contract=off")
endif()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# MSVC defaults to /fp:precise
endif()


include(CheckCompilerFlagsOutput)

set(WZ_TARGET_ADDITIONAL_PROPERTIES) # Set below to any additional properties that should be added to Warzone targets (src/, lib/*/)
Expand Down

0 comments on commit 18c4fbc

Please sign in to comment.