mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
linker tests: avoid trivially unnecessary allocation
This commit is contained in:
parent
4000685557
commit
9fa0a44de9
@ -74,8 +74,8 @@ fn addCompileStep(
|
||||
.target = base.target,
|
||||
.optimize = base.optimize,
|
||||
.root_source_file = rsf: {
|
||||
const name = b.fmt("{s}.zig", .{overlay.name});
|
||||
const bytes = overlay.zig_source_bytes orelse break :rsf null;
|
||||
const name = b.fmt("{s}.zig", .{overlay.name});
|
||||
break :rsf b.addWriteFiles().add(name, bytes);
|
||||
},
|
||||
.pic = overlay.pic,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user