update zig, fix linux build

This commit is contained in:
Mitchell Hashimoto
2024-04-18 13:27:15 -07:00
parent 973538e30e
commit bd7d71440e
2 changed files with 5 additions and 4 deletions

6
flake.lock generated
View File

@ -194,11 +194,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713399763, "lastModified": 1713471830,
"narHash": "sha256-iaRpxQEbruPiWKi71uxb7fgamPvX3KdetzSwTM/Acck=", "narHash": "sha256-bx/GJfc5dc8WfThWNCWPzgWeiP89wWOfi0zkaosdbcU=",
"owner": "mitchellh", "owner": "mitchellh",
"repo": "zig-overlay", "repo": "zig-overlay",
"rev": "1c839c53ad6ce53895f59432378efb602be19796", "rev": "4c2dfbd41e220b9e1bbf12c38b98f56459e3b339",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -61,7 +61,8 @@ fn comptimeGenerateGResourceXML(comptime libadwaita: bool) []const u8 {
var buf: [counter.bytes_written]u8 = undefined; var buf: [counter.bytes_written]u8 = undefined;
var stream = std.io.fixedBufferStream(&buf); var stream = std.io.fixedBufferStream(&buf);
try writeGResourceXML(libadwaita, stream.writer()); try writeGResourceXML(libadwaita, stream.writer());
return stream.getWritten(); const final = buf;
return final[0..stream.getWritten().len];
} }
} }