From 0397a2e3a57d130060e6b8f2715be186111e76fe Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Sun, 3 Dec 2023 18:34:15 -0800 Subject: [PATCH] Disable inappropriate float tests for O0 --- SingleSource/Regression/C/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SingleSource/Regression/C/CMakeLists.txt b/SingleSource/Regression/C/CMakeLists.txt index 92b92137d..198417f8d 100644 --- a/SingleSource/Regression/C/CMakeLists.txt +++ b/SingleSource/Regression/C/CMakeLists.txt @@ -42,6 +42,12 @@ if (ARCH STREQUAL "MOS") # Requires argc/argv. 2005-05-06-LongLongSignedShift.c ) + + if (CMAKE_BUILD_TYPE STREQUAL Debug AND CMAKE_C_FLAGS_DEBUG MATCHES -O0) + list(REMOVE_ITEM Source + # Too big + matrixTranspose.c + ) endif() list(APPEND LDFLAGS -lm) @@ -53,5 +59,7 @@ if(ARCH STREQUAL "MOS") target_link_libraries(Regression-C-2003-05-21-UnionTest PRIVATE printf_flt) target_link_libraries(Regression-C-2008-01-07-LongDouble PRIVATE printf_flt) target_link_libraries(Regression-C-callargs PRIVATE printf_flt) - target_link_libraries(Regression-C-matrixTranspose PRIVATE printf_flt) + if (NOT (CMAKE_BUILD_TYPE STREQUAL Debug AND CMAKE_C_FLAGS_DEBUG MATCHES -O0)) + target_link_libraries(Regression-C-matrixTranspose PRIVATE printf_flt) + endif() endif()