0
Fork 0
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:
xEgoist 2022-10-07 14:00:48 -05:00 • committed by Andrew Kelley
commit ae39e7867d