Windows: qualify Configuration, Crypto and System

- Allowlist Configuration, Crypto and System for the Windows target.
- System: link winmm for the Win32 audio backend; include windows.h before
  mmsystem.h.
- Tests: add a whole-file // @requires-posix gate (CMake path and the VBS
  build.cpp) and mark the POSIX-only System suites; skip helper-based cases
  on Windows; make setenv/unsetenv and getpid portable.
- The POSIX process helper is no longer built on Windows.

Cross-built with x86_64-w64-mingw32 GCC 16.2: all modules and VoidTests.exe
link. Linux System+Testing suite still passes (477 tests, 474 passed).

Refs #65
This commit is contained in:
faumaray committed 2026-12-05 15:57:12 +03:00
1 parent c085822686
commit bd5488b15b
16 files changed
+196 -31

No files matched your search

+4 -2
View File
@@ -881,11 +881,13 @@ void build(Void::Build::Project &project)
if (!test_file_dependencies_selected(root / file, selected)) {
continue;
}
if (!compiler_has_reflection()) {
if (!compiler_has_reflection() || windows) {
std::ifstream gate{root / file};
std::string content((std::istreambuf_iterator<char>{gate}),
std::istreambuf_iterator<char>{});
if (content.find("// @requires-reflection") != std::string::npos) {
if ((windows && content.find("// @requires-posix") != std::string::npos) ||
(!compiler_has_reflection() &&
content.find("// @requires-reflection") != std::string::npos)) {
continue;
}
}