mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
Added os check for std.fs.setAsCwd() to work with windows
Due to the unavailability of fchdir in Windows, a call for setting the CWD needs to either call chdir with the path string or call SetCurrentDirectory. Either way, since we are dealing with a Handle in Windows, a call for GetFinalPathNameByHandle is necessary for getting the file path first.
This commit is contained in:
parent
b4e3424594
commit
ae39e7867d
1 changed files with 8 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue