diff options
| author | 2024-03-31 09:59:51 -0400 | |
|---|---|---|
| committer | 2024-03-31 09:59:51 -0400 | |
| commit | 200c617c865a5952f0bd12378802cc06ea3eb1c2 (patch) | |
| tree | 2af456d4c62a08330cf961e7237f083fc4566370 /codegen/scripts.zig | |
| parent | Split out Unicode tests to separate file (diff) | |
| download | zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.tar.gz zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.tar.xz zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.zip | |
Updated README
Diffstat (limited to 'codegen/scripts.zig')
| -rw-r--r-- | codegen/scripts.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/codegen/scripts.zig b/codegen/scripts.zig index e985c1e..660699d 100644 --- a/codegen/scripts.zig +++ b/codegen/scripts.zig | |||
| @@ -288,11 +288,10 @@ pub fn main() !void { | |||
| 288 | _ = args_iter.skip(); | 288 | _ = args_iter.skip(); |
| 289 | const output_path = args_iter.next() orelse @panic("No output file arg!"); | 289 | const output_path = args_iter.next() orelse @panic("No output file arg!"); |
| 290 | 290 | ||
| 291 | const compressor = std.compress.deflate.compressor; | 291 | const compressor = std.compress.flate.deflate.compressor; |
| 292 | var out_file = try std.fs.cwd().createFile(output_path, .{}); | 292 | var out_file = try std.fs.cwd().createFile(output_path, .{}); |
| 293 | defer out_file.close(); | 293 | defer out_file.close(); |
| 294 | var out_comp = try compressor(allocator, out_file.writer(), .{ .level = .best_compression }); | 294 | var out_comp = try compressor(.raw, out_file.writer(), .{ .level = .best }); |
| 295 | defer out_comp.deinit(); | ||
| 296 | const writer = out_comp.writer(); | 295 | const writer = out_comp.writer(); |
| 297 | 296 | ||
| 298 | const endian = builtin.cpu.arch.endian(); | 297 | const endian = builtin.cpu.arch.endian(); |