Skip to content

Commit 9656ec2

Browse files
committed
better default for use_stage1 when -ofmt=c is provided
1 parent 173952f commit 9656ec2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Compilation.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,10 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
10411041
}
10421042
}
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+
10441048
break :blk build_options.is_stage1;
10451049
};
10461050

0 commit comments

Comments
 (0)