comp: enable compilation of zig_libc

This commit is contained in:
David Rubin 2024-07-26 14:02:48 -07:00
parent 846bd40361
commit a7498a6a53
No known key found for this signature in database
GPG Key ID: A4390FEB5F00C0A5

View File

@ -6333,6 +6333,7 @@ fn canBuildZigLibC(target: std.Target, use_llvm: bool) bool {
}
return switch (target_util.zigBackend(target, use_llvm)) {
.stage2_llvm => true,
.stage2_riscv64 => true,
.stage2_x86_64 => if (target.ofmt == .elf or target.ofmt == .macho) true else build_options.have_llvm,
else => build_options.have_llvm,
};