Preserve staged helper builds and exclude hooks before attachment

This commit is contained in:
Storm Dragon committed 2026-10-31 15:21:01 -04:00
1 parent 0db42de77e
commit 989ecb681d
12 files changed
+267 -38

No files matched your search

+7
View File
@@ -117,6 +117,13 @@ if(BUILD_TESTING)
else()
set(fixture_compiler "${MINGW_C_COMPILER}")
endif()
set(exclusions_test "${CMAKE_CURRENT_BINARY_DIR}/hook-exclusions${arch}.exe")
add_custom_command(OUTPUT "${exclusions_test}"
COMMAND "${fixture_compiler}" -std=c11 -O2 -Wall -Wextra
-o "${exclusions_test}" "${CMAKE_CURRENT_SOURCE_DIR}/tests/hook_exclusions_test.c" -luser32
DEPENDS tests/hook_exclusions_test.c foreground_hooks.h bootstrapper_hook.h VERBATIM)
add_custom_target(hook-exclusions${arch} ALL DEPENDS "${exclusions_test}")
add_wine_test(hook-exclusions${arch} 35 wine "${exclusions_test}")
set(hook_fixture "${CMAKE_CURRENT_BINARY_DIR}/hook-safety-fixture${arch}.exe")
add_custom_command(OUTPUT "${hook_fixture}"
COMMAND "${fixture_compiler}" -std=c11 -O2 -Wall -Wextra -Wl,--stack,1048576