diff options
| author | 2024-03-31 09:59:51 -0400 | |
|---|---|---|
| committer | 2024-03-31 09:59:51 -0400 | |
| commit | 200c617c865a5952f0bd12378802cc06ea3eb1c2 (patch) | |
| tree | 2af456d4c62a08330cf961e7237f083fc4566370 /codegen/compat.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/compat.zig')
| -rw-r--r-- | codegen/compat.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/codegen/compat.zig b/codegen/compat.zig index d0a108a..07616fc 100644 --- a/codegen/compat.zig +++ b/codegen/compat.zig | |||
| @@ -17,11 +17,10 @@ pub fn main() !void { | |||
| 17 | _ = args_iter.skip(); | 17 | _ = args_iter.skip(); |
| 18 | const output_path = args_iter.next() orelse @panic("No output file arg!"); | 18 | const output_path = args_iter.next() orelse @panic("No output file arg!"); |
| 19 | 19 | ||
| 20 | const compressor = std.compress.deflate.compressor; | 20 | const compressor = std.compress.flate.deflate.compressor; |
| 21 | var out_file = try std.fs.cwd().createFile(output_path, .{}); | 21 | var out_file = try std.fs.cwd().createFile(output_path, .{}); |
| 22 | defer out_file.close(); | 22 | defer out_file.close(); |
| 23 | var out_comp = try compressor(allocator, out_file.writer(), .{ .level = .best_compression }); | 23 | var out_comp = try compressor(.raw, out_file.writer(), .{ .level = .best }); |
| 24 | defer out_comp.deinit(); | ||
| 25 | const writer = out_comp.writer(); | 24 | const writer = out_comp.writer(); |
| 26 | 25 | ||
| 27 | const endian = builtin.cpu.arch.endian(); | 26 | const endian = builtin.cpu.arch.endian(); |