fix compilation regression

This commit is contained in:
Andrew Kelley 2023-11-03 19:59:23 -07:00
parent 1396479656
commit 9a1094c00f
3 changed files with 2 additions and 6 deletions

View File

@ -194,10 +194,6 @@ pub fn build(b: *std.Build) !void {
};
const exe = addCompilerStep(b, optimize, target);
if (only_reduce) {
exe.use_llvm = false;
exe.use_lld = false;
}
exe.strip = strip;
exe.pie = pie;
exe.sanitize_thread = sanitize_thread;

View File

@ -113,7 +113,7 @@ pub fn render(tree: Ast, gpa: Allocator) RenderError![]u8 {
var buffer = std.ArrayList(u8).init(gpa);
defer buffer.deinit();
try tree.renderToArrayList(&buffer);
try tree.renderToArrayList(&buffer, .{});
return buffer.toOwnedSlice();
}

View File

@ -5774,7 +5774,7 @@ fn fmtPathFile(
fmt.out_buffer.shrinkRetainingCapacity(0);
try fmt.out_buffer.ensureTotalCapacity(source_code.len);
try tree.renderToArrayList(&fmt.out_buffer);
try tree.renderToArrayList(&fmt.out_buffer, .{});
if (mem.eql(u8, fmt.out_buffer.items, source_code))
return;