[client] tests: dont use fast math
Some checks are pending
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Waiting to run
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Waiting to run
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Waiting to run
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Waiting to run
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Waiting to run
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Waiting to run
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Waiting to run
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Waiting to run
build / module (push) Waiting to run
build / host-linux (push) Waiting to run
build / host-windows-cross (push) Waiting to run
build / host-windows-native (push) Waiting to run
build / idd (push) Waiting to run
build / obs (clang) (push) Waiting to run
build / obs (gcc) (push) Waiting to run
build / docs (push) Waiting to run
build / client-tests (Debug, map[cc:clang cxx:clang++], libdecor) (push) Blocked by required conditions
build / client-tests (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Blocked by required conditions
build / client-tests (Debug, map[cc:gcc cxx:g++], libdecor) (push) Blocked by required conditions
build / client-tests (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Blocked by required conditions
build / client-tests (Release, map[cc:clang cxx:clang++], libdecor) (push) Blocked by required conditions
build / client-tests (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Blocked by required conditions
build / client-tests (Release, map[cc:gcc cxx:g++], libdecor) (push) Blocked by required conditions
build / client-tests (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Blocked by required conditions

Clang C and C++ produce slightly different powf rounding with fast math,
for testing disable it.
This commit is contained in:
Geoffrey McRae
2026-08-01 16:48:16 +10:00
parent 82ced18015
commit e671bfd4e7
2 changed files with 8 additions and 0 deletions

View File

@@ -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="$<TARGET_FILE:looking-glass-client>"
)

View File

@@ -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
)