aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-09-24 20:35:01 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-09-24 20:35:01 -0700
commit41e5331c084b4ca75eae2d0a7f668b244a22f8d1 (patch)
treefdc816b04e75a3dc05f12d72e888db46a60e5cd3
parentd83c76eb5af687210e3cc856b3f808f7e5f5e68f (diff)
downloadzig-41e5331c084b4ca75eae2d0a7f668b244a22f8d1.tar.gz
zig-41e5331c084b4ca75eae2d0a7f668b244a22f8d1.zip
resinator: fix compile errors
-rw-r--r--lib/compiler/resinator/main.zig2
-rw-r--r--lib/compiler/resinator/preprocess.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/resinator/main.zig b/lib/compiler/resinator/main.zig
index 4faf3feb02..08e6f7d4ce 100644
--- 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
index 2a5dfd9f63..97b320d50d 100644
--- 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,
};