From 73d29b08606cb10d18c139ad4abecb0e82a066d7 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Tue, 10 Jun 2025 23:57:05 -0700 Subject: [PATCH] [lib][libc] don't compile the floating point tests if there's no FPU --- lib/libc/test/printf_tests_float.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libc/test/printf_tests_float.cpp b/lib/libc/test/printf_tests_float.cpp index 90d71faa..344fabba 100644 --- a/lib/libc/test/printf_tests_float.cpp +++ b/lib/libc/test/printf_tests_float.cpp @@ -4,6 +4,8 @@ // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT +#if !WITH_NO_FP + #include #include #include @@ -63,3 +65,5 @@ RUN_TEST(hex); END_TEST_CASE(printf_tests_float) } // namespace + +#endif // !WITH_NO_FP