From 7399856b5e92f2b2bc30cc3a7849053b78be2f2c Mon Sep 17 00:00:00 2001 From: Adam Dempsey Date: Wed, 3 Jun 2026 13:42:31 -0600 Subject: [PATCH] Force intel compilers to have no-finite-math-only in Debug builds --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5af39066376..f65349da751 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -589,6 +589,9 @@ target_compile_options( # `-Wclass-memaccess now default with -Wall but we explicitly # manage this ourselves in our serialization routines. $<$,$>:-Wno-class-memaccess> + # Intel compilers enable -ffast-math even in Debug builds. This disables finite-math-only in + # Debug builds to allow NaN/Inf checks without pages of warnings + $<$,$,$>>:-fno-finite-math-only> ) if (SINGULARITY_STRICT_WARNINGS) target_compile_options(singularity-eos_Interface INTERFACE