Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix build with Eigen3 and Imtel compiler.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 12 May 2022 15:59:35 +0000 (17:59 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 12 May 2022 16:00:26 +0000 (18:00 +0200)
tools/cmake/Flags.cmake

index 5afc1f0..de55de0 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)