ci: Windows zip only builds cst-agent; link util for replay tests

os_win.c needs cst_buf_* / cst_utf8_valid from util.c after os_compat was
added to the small replay CMake targets. Release packaging only needs
cst-agent.exe, so bootstrap_windows.sh builds that target alone.
This commit is contained in:
WHC
2026-10-07 21:09:44 +08:00
parent 94e8746091
commit 630e8f4295
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -237,9 +237,10 @@ foreach(t ${_CST_SMALL_TESTS})
elseif(t STREQUAL test_json_baseline)
add_executable(${t} tests/${t}.c src/json_baseline.c vendor/cjson/cJSON.c)
elseif(t STREQUAL test_replay_starvation OR t STREQUAL test_replay_real)
# cst_test_util.h static helpers reference os_*; gcc -O0 keeps unused ones
# cst_test_util.h static helpers reference os_*; gcc -O0 keeps unused ones.
# On Windows os_win.c also needs util.c (cst_buf_*, cst_utf8_valid).
add_executable(${t} tests/${t}.c src/ctl_parse.c src/json_baseline.c
vendor/cjson/cJSON.c src/os_compat.c src/os_win.c)
vendor/cjson/cJSON.c src/os_compat.c src/os_win.c src/util.c)
if(WIN32)
target_link_libraries(${t} PRIVATE advapi32 user32)
endif()