Build GPU hold regression with MinGW link-time section removal

This commit is contained in:
Matthew Stanley
2026-10-14 11:29:13 -07:00
parent 12f98480b3
commit 3bbfd03a10
+4
View File
@@ -980,6 +980,10 @@ if(BUILD_TESTING)
src/psx_video_timing.c
src/gpu_timeline.c)
target_include_directories(depth24_present_hold_exec_test PRIVATE include src)
if(MINGW)
target_compile_options(depth24_present_hold_exec_test PRIVATE -flto)
target_link_options(depth24_present_hold_exec_test PRIVATE -flto)
endif()
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
target_compile_options(depth24_present_hold_exec_test PRIVATE
-ffunction-sections -fdata-sections)