ci: link os_compat for replay CMake tests; fix llvm-mingw mirrors
ci / linux (clang) (push) Successful in 3m45s
ci / linux (gcc) (push) Successful in 4m22s
ci / musl (push) Successful in 4m28s
ci / windows-cross (push) Failing after 7m9s

gcc -O0 keeps unused cst_test_util.h helpers that need os_*; clang GC'd
them so only the gcc CMake step failed. Prefer ghfast/ghproxy.net for the
llvm-mingw tarball (gitclone 500 / github unreachable on the runner).
This commit is contained in:
WHC
2026-10-07 02:57:38 +08:00
parent 9b2c7acfae
commit 546a4c7eeb
2 changed files with 18 additions and 5 deletions
+6 -1
View File
@@ -237,7 +237,12 @@ 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)
add_executable(${t} tests/${t}.c src/ctl_parse.c src/json_baseline.c vendor/cjson/cJSON.c)
# cst_test_util.h static helpers reference os_*; gcc -O0 keeps unused ones
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)
if(WIN32)
target_link_libraries(${t} PRIVATE advapi32 user32)
endif()
else()
add_executable(${t} tests/test_mm_tool.c src/mm_tool.c)
endif()