Skip to content

Commit 761783f

Browse files
committed
resinator: Only preprocess when the input is an .rc file
1 parent 0adcfd6 commit 761783f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compiler/resinator/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub fn main() !void {
121121
};
122122

123123
const full_input = full_input: {
124-
if (options.preprocess != .no) {
124+
if (options.input_format == .rc and options.preprocess != .no) {
125125
var preprocessed_buf = std.ArrayList(u8).init(allocator);
126126
errdefer preprocessed_buf.deinit();
127127

0 commit comments

Comments
 (0)