mirror of
https://github.com/ziglang/zig.git
synced 2025-01-22 09:52:01 +00:00
fix compilation regression
This commit is contained in:
parent
1396479656
commit
9a1094c00f
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user