Browse Source

Override icx's default fast math mode to ensure correct NaN handling

tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
8b4996a2d5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      cmake/cc.cmake

+ 4
- 0
cmake/cc.cmake View File

@@ -4,6 +4,10 @@
## Sets C related variables.
include(CheckCCompilerFlag)

if (${CMAKE_C_COMPILER_ID} MATCHES "IntelLLVM")
set(CCOMMON_OPT "${CCOMMON_OPT} -fp-model=consistent")
endif ()

if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "LSB" OR ${CMAKE_C_COMPILER_ID} MATCHES "Clang")
set(CCOMMON_OPT "${CCOMMON_OPT} -Wall")
set(COMMON_PROF "${COMMON_PROF} -fno-inline")


Loading…
Cancel
Save