std.Build.Cache.Path: fix single-quote escaping format

This commit is contained in:
Andrew Kelley 2024-10-10 14:18:39 -07:00
parent 14c8e270bb
commit 101d21a6dc

View File

@ -149,7 +149,7 @@ pub fn format(
const stringEscape = std.zig.stringEscape;
const f = switch (fmt_string[0]) {
'q' => "",
'\'' => '\'',
'\'' => "\'",
else => @compileError("unsupported format string: " ++ fmt_string),
};
if (self.root_dir.path) |p| {