From e671bfd4e742df028263885aff2cc6483e561eee Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 1 Aug 2026 16:48:16 +1000 Subject: [PATCH] [client] tests: dont use fast math Clang C and C++ produce slightly different powf rounding with fast math, for testing disable it. --- client/tests/CMakeLists.txt | 4 ++++ client/transports/Test/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/client/tests/CMakeLists.txt b/client/tests/CMakeLists.txt index f5485aa3..0cf21960 100644 --- a/client/tests/CMakeLists.txt +++ b/client/tests/CMakeLists.txt @@ -49,6 +49,10 @@ set_target_properties(render-tests PROPERTIES CXX_STANDARD_REQUIRED ON ) +target_compile_options(render-tests PRIVATE + -fno-fast-math +) + target_compile_definitions(render-tests PRIVATE LG_CLIENT_PATH="$" ) diff --git a/client/transports/Test/CMakeLists.txt b/client/transports/Test/CMakeLists.txt index d5ecce55..5b6c38c9 100644 --- a/client/transports/Test/CMakeLists.txt +++ b/client/transports/Test/CMakeLists.txt @@ -5,6 +5,10 @@ add_library(transport_Test STATIC test.c ) +target_compile_options(transport_Test PRIVATE + -fno-fast-math +) + target_link_libraries(transport_Test lg_common )