better default for use_stage1 when -ofmt=c is provided

This commit is contained in:
Andrew Kelley 2022-08-10 16:24:04 -07:00
parent 173952f4b8
commit 9656ec271c

View File

@ -1041,6 +1041,10 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
}
}
// If LLVM does not support the target, then we can't use it.
if (!target_util.hasLlvmSupport(options.target, ofmt))
break :blk false;
break :blk build_options.is_stage1;
};