-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quote prereq names in layout depfile (#68)
The layout step was choking on paths with spaces in the depfile, so now all depfile paths are quoted. I could have just added quotation marks to all existing print calls, but I figured it will harder to screw it up again if we're not directly using the writer.
- Loading branch information
1 parent
1630838
commit 36e5751
Showing
3 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const std = @import("std"); | ||
|
||
const DepWriter = @This(); | ||
|
||
w: std.io.AnyWriter, | ||
|
||
pub fn init(writer: std.io.AnyWriter) DepWriter { | ||
return .{.w=writer}; | ||
} | ||
|
||
pub fn writeTarget(dw: DepWriter, target: []const u8) !void { | ||
try dw.w.print("\n{s}:", .{target}); | ||
} | ||
|
||
pub fn writePrereq(dw: DepWriter, prereq: []const u8) !void { | ||
try dw.w.print(" \"{s}\"", .{prereq}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters