Commit 761783f54d

Ryan Liptak <squeek502@hotmail.com>
2025-06-29 04:37:24
resinator: Only preprocess when the input is an .rc file
1 parent 0adcfd6
Changed files (1)
lib
compiler
resinator
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();