zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 761783f54d1f5ecfaaefc466693f8912ed2e83f5 (tree)
parent 0adcfd60f4fcfd01c74a6477cbcef187ce06f533
Author: Ryan Liptak <squeek502@hotmail.com>
Date:   Sat, 28 Jun 2025 19:37:24 -0700

resinator: Only preprocess when the input is an .rc file

Diffstat:
Mlib/compiler/resinator/main.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/compiler/resinator/main.zig b/lib/compiler/resinator/main.zig @@ -121,7 +121,7 @@ pub fn main() !void { }; const full_input = full_input: { - if (options.preprocess != .no) { + if (options.input_format == .rc and options.preprocess != .no) { var preprocessed_buf = std.ArrayList(u8).init(allocator); errdefer preprocessed_buf.deinit();