| ... | ... | @@ -82,7 +82,7 @@ pub fn next(self: *Tokenizer) ?Token { |
| 82 | 82 | // silently ignore null target |
| 83 | 83 | self.state = .lhs; |
| 84 | 84 | }, |
| 85 | | '\\' => { |
| 85 | '/', '\\' => { |
| 86 | 86 | self.state = .target_colon_reverse_solidus; |
| 87 | 87 | self.index += 1; |
| 88 | 88 | }, |
| ... | ... | @@ -706,7 +706,7 @@ test "windows mixed prereqs" { |
| 706 | 706 | ); |
| 707 | 707 | } |
| 708 | 708 | |
| 709 | | test "funky targets" { |
| 709 | test "windows funky targets" { |
| 710 | 710 | try depTokenizer( |
| 711 | 711 | \\C:\Users\anon\foo.o: |
| 712 | 712 | \\C:\Users\anon\foo\ .o: |
| ... | ... | @@ -728,6 +728,16 @@ test "funky targets" { |
| 728 | 728 | ); |
| 729 | 729 | } |
| 730 | 730 | |
| 731 | test "windows drive and forward slashes" { |
| 732 | try depTokenizer( |
| 733 | \\C:/msys64/what/zig-cache\tmp\48ac4d78dd531abd-cxa_thread_atexit.obj: \ |
| 734 | \\ C:/msys64/opt/zig3/lib/zig/libc/mingw/crt/cxa_thread_atexit.c |
| 735 | , |
| 736 | \\target = {C:/msys64/what/zig-cache\tmp\48ac4d78dd531abd-cxa_thread_atexit.obj} |
| 737 | \\prereq = {C:/msys64/opt/zig3/lib/zig/libc/mingw/crt/cxa_thread_atexit.c} |
| 738 | ); |
| 739 | } |
| 740 | |
| 731 | 741 | test "error incomplete escape - reverse_solidus" { |
| 732 | 742 | try depTokenizer("\\", |
| 733 | 743 | \\ERROR: illegal char '\' at position 0: incomplete escape |