fix(libc): build libc without floating-point contraction

This commit is contained in:
MarcZX10 committed 2026-10-25 16:03:50 +00:00
1 parent d2b3ee3bcc
commit 8c71024ea2
1 file changed
+4
+4
View File
@@ -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})