From 3bbfd03a101acef45f1a13e16a3c472f217d3f0e Mon Sep 17 00:00:00 2001 From: Matthew Stanley <1379tech@gmail.com> Date: Wed, 14 Oct 2026 11:29:13 -0700 Subject: [PATCH] Build GPU hold regression with MinGW link-time section removal --- runtime/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 83a2e28d..16ea2b90 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -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)