Skip to content

Commit

Permalink
Disable inappropriate float tests for O0
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed Dec 4, 2023
1 parent af38b91 commit 0397a2e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion SingleSource/Regression/C/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()

0 comments on commit 0397a2e

Please sign in to comment.