Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'dev-fix_mailbox_clear' into 'master'
[simgrid.git] / tools / cmake / Flags.cmake
index 5afc1f0837363e507b66e0541bb62ada9a3d55e5..de55de01d4f126387884dad0a72f7a83950c096b 100644 (file)
@@ -191,7 +191,8 @@ endif()
 
 if (CMAKE_C_COMPILER_ID MATCHES "Intel")
   # honor parentheses when determining the order of expression evaluation.
-  set(optCFLAGS "${optCFLAGS} -fprotect-parens ")
+  # disallow optimizations for floating-point arithmetic with Nans or +-Infs (breaks Eigen3)
+  set(optCFLAGS "${optCFLAGS} -fprotect-parens -fno-finite-math-only")
 endif()
 
 if(NOT enable_debug)