authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-10 16:24:04-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-10 16:24:04-07:00
log9656ec271c3ca1009c48c26a9a5c407d98bbcacd
tree29ba61893922aa914a846c0be32c2af9b2998f8c
parent173952f4b82713712fde873ffa31decb53ad4450

better default for use_stage1 when -ofmt=c is provided


1 files changed, 4 insertions(+), 0 deletions(-)

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