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

This commit is contained in:
Ryan Liptak 2025-06-28 19:37:24 -07:00
parent 0adcfd60f4
commit 761783f54d

View file

@ -121,7 +121,7 @@ pub fn main() !void {
}; };
const full_input = full_input: { 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); var preprocessed_buf = std.ArrayList(u8).init(allocator);
errdefer preprocessed_buf.deinit(); errdefer preprocessed_buf.deinit();