From 8c71024ea265199a1204ecb73f4e744c9fc42e5f Mon Sep 17 00:00:00 2001 From: MarcZX10 <67475268+MarcZX10@users.noreply.github.com> Date: Sun, 25 Oct 2026 16:03:50 +0000 Subject: [PATCH] fix(libc): build libc without floating-point contraction --- core/libs/prx/libc/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/libs/prx/libc/CMakeLists.txt b/core/libs/prx/libc/CMakeLists.txt index bf8e7ab043..aeaf870745 100644 --- a/core/libs/prx/libc/CMakeLists.txt +++ b/core/libs/prx/libc/CMakeLists.txt @@ -115,6 +115,10 @@ target_include_directories(libc PRIVATE target_link_libraries(libc PRIVATE zarchive) +if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") + target_compile_options(libc PRIVATE -ffp-contract=off) +endif() + if(BUILD_TESTING) add_test_executable(guest_update_env_tests ${LIBS_INCLUDE_DIR}/tests/GuestUpdateEnv.cpp) target_include_directories(guest_update_env_tests PRIVATE ${LIBS_INCLUDE_DIR})