Build: qualify Windows runtime and fix MinGW portability (refs #38)
This commit is contained in:
1 parent
1335fa86c3
commit
5d4589056a
8 files changed
+73
-27
No files matched your search
+20
-11
@@ -88,7 +88,7 @@ recognized and configured like Linux, but no Alpine build has been observed,
|
||||
so musl-specific behaviour (subprocess `/proc`, `dl`, locale) must not be
|
||||
assumed. Record the exact tuple before claiming support.
|
||||
|
||||
### Windows client (compile/install/consume qualified)
|
||||
### Windows client (compile/install/consume + Wine runtime qualified)
|
||||
|
||||
| Item | Value |
|
||||
|------|-------|
|
||||
@@ -97,18 +97,27 @@ assumed. Record the exact tuple before claiming support.
|
||||
| Standard library | libstdc++ + mingw-w64 CRT (mcfgthread threading in the Nix wrapper) |
|
||||
| CMake / generator | CMake 4.5.0, Ninja 1.13.2 |
|
||||
| Language | C++26, reflection `yes` |
|
||||
| Modules | `Algorithms Binary Containers Core Data Functional LogState Math Memory Testing TestingMock Text Time Unicode` plus the compiled subset: `Async Discovery Fsm IO Log Messaging Scheduler Service` |
|
||||
| Observed | configure, compile, `cmake --install`, and consume (`TargetProfile.exe` linked, not executed on the Linux host) |
|
||||
| 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` |
|
||||
| Observed | configure, compile, `cmake --install`, consume (`TargetProfile.exe` linked); `VoidTests.exe` under Wine: **1364 tests, 1360 passed, 4 skipped, 0 failed** |
|
||||
|
||||
Known blockers for a larger Windows subset:
|
||||
Notes from the runtime run:
|
||||
|
||||
- `Observability` fails to link with MinGW because the inline `thread_local`
|
||||
hook control emits duplicate TLS init functions (GCC/mingw behaviour, not
|
||||
a Void bug). Modules depending on it stay out of the allowlist.
|
||||
- The test suite (`VOID_ENABLE_TESTING=ON`) cross-compiles most suites but
|
||||
`tests/standalone/IO/IoFile.cpp` uses POSIX-only `O_CLOEXEC`/`fcntl`, so a
|
||||
Windows test build currently stops there. Windows runtime tests need a
|
||||
Windows runner.
|
||||
- `IO` is **not** in the Windows allowlist. It builds, but its native backend
|
||||
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.
|
||||
- `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).
|
||||
- Test code is portable: POSIX-only descriptor assertions are guarded, the
|
||||
Log hardening test closes its `ifstream` before removing the file, and the
|
||||
subprocess-isolation test skips when `current_executable_path()` is not
|
||||
implemented (Windows has no subprocess isolation yet).
|
||||
- MinGW test builds need `-Wa,-mbig-obj`: the Fsm hardening test TU exceeds
|
||||
the COFF section limit with the default object format.
|
||||
- Runtime observations come from Wine, not a native Windows runner; a
|
||||
Windows CI runner should confirm them.
|
||||
|
||||
The Nix MinGW wrapper needs the mcfgthread include/library paths explicitly:
|
||||
|
||||
|
||||
Reference in new issue
Block a user