mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3093] hc_persist_parity.cpp calls POSIX setenv/unsetenv: target does not build with MSVC, ctest reports 2 tests Not Run #1237
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gputier on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3093
Context
On
mainat477ac13c(2026-10-16), tag v0.1.45, the Windows build (Release, CUDA 13.4, sm_120, RTX 5090) fails to compilesrc/kernels/hc_persist_parity.cppwith MSVC. Lines 55-56:setenvandunsetenvare POSIX functions. MSVC does not declare them. The compiler reports:Consequence
The
hc_persist_paritytarget does not build on Windows. ctest markshc_persist_parityandhc_persist_default_offas "Not Run" (CMakeLists.txt lines 1115-1119). The engine itself is not affected, sinceSTRATA_HC_PERSISTis off by default. The test was added bycea3d61b, after 0.1.42.Proposed fix
The repository already handles this case elsewhere.
set_envinsrc/kernels/decode_cluster_parity.cpplines 46-52 calls_putenv_s(name, value)under_WIN32andsetenv(name, value, 1)on other platforms. The same guard applies here. On Windows,_putenv_swith an empty value removes the variable (documented behavior), so the--offcase maps to it:@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.