authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-10-27 18:08:19+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-10-27 15:45:42-04:00
log3568cd4b8f52164d8a519576cc9ea95bb303cd92
treed5ed72e2edff1e9cf8a40d7f3c769d2d84b5fdad
parent3af973160031fd573f46489bee519217e635839a

stage1: Fix path normalization on Windows

Backport a missing change from `path.zig`. Fixes #9465

1 files changed, 1 insertions(+), 1 deletions(-)

src/stage1/os.cpp+1-1
...@@ -480,7 +480,7 @@ static Buf os_path_resolve_windows(Buf **paths_ptr, size_t paths_len) {...@@ -480,7 +480,7 @@ static Buf os_path_resolve_windows(Buf **paths_ptr, size_t paths_len) {
480 // Now we know the disk designator to use, if any, and what kind it is. And our result480 // Now we know the disk designator to use, if any, and what kind it is. And our result
481 // is big enough to append all the paths to.481 // is big enough to append all the paths to.
482 bool correct_disk_designator = true;482 bool correct_disk_designator = true;
483 for (size_t i = 0; i < paths_len; i += 1) {483 for (size_t i = first_index; i < paths_len; i += 1) {
484 Slice<uint8_t> p = buf_to_slice(paths_ptr[i]);484 Slice<uint8_t> p = buf_to_slice(paths_ptr[i]);
485 WindowsPath parsed = windowsParsePath(p);485 WindowsPath parsed = windowsParsePath(p);
486486