mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
Compilation: fix writeDepFile with no file system inputs
This commit is contained in:
committed by
Alex Rønne Petersen
parent
a8c74e0565
commit
0a9c4008fd
+2
-2
@@ -4770,12 +4770,12 @@ fn writeDepFile(
|
||||
|
||||
try w.print("{f}:", .{bin_file});
|
||||
|
||||
{
|
||||
if (fsi.len > 0) {
|
||||
var it = std.mem.splitScalar(u8, fsi, 0);
|
||||
while (it.next()) |input| try w.print(" \\\n {f}{s}", .{ prefixes[input[0] - 1], input[1..] });
|
||||
}
|
||||
|
||||
{
|
||||
if (fsi.len > 0) {
|
||||
var it = std.mem.splitScalar(u8, fsi, 0);
|
||||
while (it.next()) |input| try w.print("\n\n{f}{s}:", .{ prefixes[input[0] - 1], input[1..] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user