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:
1 parent
c085822686
commit
bd5488b15b
16 files changed
+196
-31
No files matched your search
+7
-1
@@ -108,7 +108,7 @@ recognized and configured like Linux; musl-specific behaviour (subprocess
|
||||
| CMake / generator | CMake 4.5.0, Ninja 1.13.2 |
|
||||
| Language | C++26, reflection `yes` |
|
||||
| Runtime | Wine 11.0 (`wine64`), no native Windows runner available |
|
||||
| Modules | `Algorithms Async Binary Containers Core Data Discovery Fsm Functional Log LogState Math Memory Messaging Observability ObservabilityHooks Scheduler Service Testing TestingMock Text Time Unicode` |
|
||||
| Modules | `Algorithms Async Binary Configuration Containers Core Crypto Data Discovery Fsm Functional Log LogState Math Memory Messaging Observability ObservabilityHooks Scheduler Service System Testing TestingMock Text Time Unicode` |
|
||||
| Observed | configure, compile, `cmake --install`, consume (`TargetProfile.exe` linked); `VoidTests.exe` under Wine: **1364 tests, 1360 passed, 4 skipped, 0 failed** |
|
||||
|
||||
Notes from the runtime run:
|
||||
@@ -117,6 +117,12 @@ Notes from the runtime run:
|
||||
is Linux-only (`EpollBackend`); on Windows `Driver::create` returns
|
||||
`IoErrorCode::unsupported` unless the mock backend is selected. A Windows
|
||||
IO backend (IOCP) is a separate task.
|
||||
- `Configuration`, `Crypto` and `System` are allowlisted and cross-compile;
|
||||
`System` links `winmm` for the Win32 audio backend. `Archive` is **not**
|
||||
allowlisted yet: its staging implementation (`StagedArchive.cpp`) is
|
||||
POSIX-only (see Void/Library#65).
|
||||
- Tests that only exercise POSIX APIs carry `// @requires-posix` and are
|
||||
skipped on Windows; the POSIX process helper is not built there.
|
||||
- `Observability` links after replacing the namespace-scope
|
||||
`inline thread_local` hook stack with a function-local `thread_local`
|
||||
accessor (MinGW emitted duplicate TLS init functions).
|
||||
|
||||
Reference in new issue
Block a user