commit 41e5331c084b4ca75eae2d0a7f668b244a22f8d1 (tree)
parent d83c76eb5af687210e3cc856b3f808f7e5f5e68f
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 24 Sep 2025 20:35:01 -0700
resinator: fix compile errors
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/compiler/resinator/main.zig b/lib/compiler/resinator/main.zig
@@ -156,7 +156,7 @@ pub fn main() !void {
try stdout.flush();
}
- preprocess.preprocess(&comp, &preprocessed_buf.writer, argv.items, maybe_dependencies_list) catch |err| switch (err) {
+ preprocess.preprocess(&comp, &preprocessed_buf.writer, argv.items, maybe_dependencies) catch |err| switch (err) {
error.GeneratedSourceError => {
try error_handler.emitAroDiagnostics(allocator, "failed during preprocessor setup (this is always a bug)", &comp);
std.process.exit(1);
diff --git a/lib/compiler/resinator/preprocess.zig b/lib/compiler/resinator/preprocess.zig
@@ -37,7 +37,7 @@ pub fn preprocess(
error.FatalError => return error.GeneratedSourceError,
else => |e| return e,
};
- const user_macros = comp.addSourceFromBuffer("<command line>", macro_buf.written()) catch |err| switch (err) {
+ const user_macros = comp.addSourceFromBuffer("<command line>", macro_buf.items) catch |err| switch (err) {
error.FatalError => return error.GeneratedSourceError,
else => |e| return e,
};