feat(platform): build on native Windows hosts
VoidBuildSystem CI / 1 · Requirements (push) Successful in 6s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Failing after 1m32s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 18s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Failing after 3m4s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 6m20s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 6m32s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 1m45s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 6m55s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 6m59s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m59s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 15s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 1m47s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m4s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 1m6s
VoidBuildSystem CI / 4B · Windows package (sanitizers) (push) Successful in 12s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m2s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 1m44s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 3m16s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 3m21s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m45s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m54s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 3m42s

Bump VoidLibrary to 482a3ea (Windows target support: qualified
Configuration/Crypto/System/Archive, Windows DirectoryWatcher,
TempDir/TempFile, process pipes) and port VBS's own host backends:

- Toolchain: Windows/macOS host names and architectures without uname.
- Platform FileOps: Win32 stat metadata, CreateFileW+LockFileEx file
  locks (Void FileLock is POSIX-only, Void/Library#66), no-op
  directory fsync, GetModuleFileNameW executable path, mtime via
  std::filesystem, and a file-copy fallback for the compdb alias.
- ProcessSupervisor: Windows PATH/PATHEXT resolution and no POSIX
  waitpid reaping (job objects own descendants).
- Snapshot: directory listing through std::filesystem on Windows.
- Remote cache/registry client/CDash: curl or Winsock-based HTTP on
  Windows (Void::Net is not qualified there yet).
- Daemon: explicit unsupported errors on Windows (named-pipe
  transport is Track C3); the registry service stays POSIX-only and
  is excluded from the Windows build.
- StateStore/Sbom/Main/Graph: portable stat, time and path handling.

Verified: MinGW-w64 GCC 16.2 builds vbs, vbs_describe, vbs_benchmarks
and the sdk/core/v1/selfhost test executables; vbs runs under Wine
and the SDK suite passes 17/17. The Linux suite stays green (8/8).
This commit is contained in:
faumaray committed 2026-12-06 02:01:24 +03:00
1 parent 8768720e54
commit e333bbe84b
23 files changed
+715 -127

No files matched your search

+21 -7
View File
@@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 4.0)
# Captured output must be plain text: the CLI colorizes help when colors are allowed.
set(ENV{NO_COLOR} "1")
function(check_process expected_code expected_out_regex expected_err_regex)
execute_process(COMMAND "${VBS}" ${ARGN}
RESULT_VARIABLE code OUTPUT_VARIABLE out ERROR_VARIABLE err TIMEOUT 15)
@@ -91,7 +94,10 @@ check_process(0 "Usage: vbs daemon ide query .*--profile" "" daemon ide query --
check_process(0 "Usage: vbs daemon compdb export .*--profile" "" daemon compdb export --help)
check_process(0 "Usage: vbs daemon compdb use .*--profile" "" daemon compdb use --help)
check_process(0 "Usage: vbs daemon compdb entries .*--file.*--limit" "" daemon compdb entries --help)
check_process(0 "Usage: vbs daemon ide generate .*--profile.*--editor.*--force" "" daemon ide generate --help)
check_process(0 "Usage: vbs daemon ide generate " "" daemon ide generate --help)
check_process(0 "--force" "" daemon ide generate --help)
check_process(0 "--profile" "" daemon ide generate --help)
check_process(0 "--editor" "" daemon ide generate --help)
check_process(0 "Usage: vbs daemon ide poll " "" daemon ide poll --help)
check_process(0 "Usage: vbs daemon ide status " "" daemon ide status --help)
check_process(0 "Usage: vbs daemon graph .*--format" "" daemon graph --help)
@@ -106,15 +112,20 @@ check_process(0 "Usage: vbs daemon target info .*--name" "" daemon target info -
check_process(0 "Usage: vbs daemon target flags .*--name.*--file" "" daemon target flags --help)
check_process(0 "Usage: vbs daemon pack .*--output" "" daemon pack --help)
check_process(0 "Usage: vbs daemon actions .*--limit" "" daemon actions --help)
check_process(0 "Usage: vbs daemon install .*--prefix.*--component.*--no-cmake-export.*--no-native-export" "" daemon install --help)
check_process(0 "Usage: vbs daemon install " "" daemon install --help)
check_process(0 "--prefix" "" daemon install --help)
check_process(0 "--component" "" daemon install --help)
check_process(0 "--no-cmake-export" "" daemon install --help)
check_process(0 "--no-native-export" "" daemon install --help)
check_process(0 "Usage: vbs daemon uninstall .*--prefix" "" daemon uninstall --help)
check_process(0 "Usage: vbs daemon gen-tests .*--input.*--output-dir" "" daemon gen-tests --help)
check_process(0 "Usage: vbs daemon init .*--dir" "" daemon init --help)
check_process(0 "Usage: vbs daemon ide wait .*--timeout-ms" "" daemon ide wait --help)
check_process(2 "" "missing subcommand for 'vbs daemon'" daemon)
if(NOT VBS_WINDOWS)
# Daemon-backed describe contract: start `vbs daemon run`, query the bounded graph summary over
# the Unix socket, then stop it. The daemon is Unix-only, matching the rest of this suite.
# the Unix socket, then stop it (Unix-only; the Windows transport is Track C3).
set(daemon_contract_root "${CMAKE_CURRENT_BINARY_DIR}/daemon_contract")
file(REMOVE_RECURSE "${daemon_contract_root}")
file(MAKE_DIRECTORY "${daemon_contract_root}/project")
@@ -193,6 +204,7 @@ if(NOT daemon_describe_out MATCHES "\"ok\":true" OR
message(FATAL_ERROR "vbs daemon describe: unexpected response [${daemon_describe_out}]")
endif()
message(STATUS "daemon describe response: ${daemon_describe_out}")
endif()
check_process(0 "Usage: vbs ide <command>.*Commands:.*generate.*query" "" ide --help)
check_process(0 "Usage: vbs ide generate " "" ide generate --help)
check_process(0 "Usage: vbs ide query " "" ide query --help)
@@ -201,9 +213,11 @@ check_process(2 "" "--output is required" ide plugin)
check_process(2 "" "missing subcommand for 'vbs ide'" ide)
check_process(2 "" "unknown IDE kind" ide generate --editor invalid_ide)
execute_process(COMMAND "${VBS_REGISTRY}" --help
RESULT_VARIABLE reg_code OUTPUT_VARIABLE reg_out ERROR_VARIABLE reg_err TIMEOUT 15)
if(NOT "${reg_code}" STREQUAL "0" OR NOT reg_out MATCHES "Usage: vbs-registry")
message(FATAL_ERROR "vbs-registry --help failed: code=${reg_code}\nstdout=[${reg_out}]\nstderr=[${reg_err}]")
if(VBS_REGISTRY)
execute_process(COMMAND "${VBS_REGISTRY}" --help
RESULT_VARIABLE reg_code OUTPUT_VARIABLE reg_out ERROR_VARIABLE reg_err TIMEOUT 15)
if(NOT "${reg_code}" STREQUAL "0" OR NOT reg_out MATCHES "Usage: vbs-registry")
message(FATAL_ERROR "vbs-registry --help failed: code=${reg_code}\nstdout=[${reg_out}]\nstderr=[${reg_err}]")
endif()
endif()
message(STATUS "CLI and auto-generated Argparse help contracts verified (including daemon describe round-trip)")