From 2aaf923e48876ecc5ca0f447b428fb74ddeb95cb Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 4 Aug 2026 00:13:14 +1000 Subject: [PATCH] [client] preserve NaN timing plot gaps Disable fast-math for the timing graph translation unit because its bucket arrays use NaN values to break plot lines across empty intervals. Keep fast-math enabled for remaining client sources while allowing Clang's strict floating-point diagnostics to remain fatal. --- client/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index f1557d5e..f9539230 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -177,6 +177,12 @@ set(SOURCES src/overlay/status.c ) +if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang") + set_source_files_properties(src/overlay/graphs.c PROPERTIES + COMPILE_FLAGS "-fno-fast-math" + ) +endif() + if(ENABLE_AUDIO) list(APPEND SOURCES src/audio.c) endif()