mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 06:14:33 +00:00
target: x86_64 backend can build compiler rt with coff
Without allowing this, the references to `compiler_rt.dll` emitted by the coff linker will prevent the executable from running.
This commit is contained in:
parent
b206b0626a
commit
d79b3cc134
1 changed files with 1 additions and 5 deletions
|
|
@ -375,11 +375,7 @@ pub fn canBuildLibCompilerRt(target: *const std.Target) enum { no, yes, llvm_onl
|
||||||
else => {},
|
else => {},
|
||||||
}
|
}
|
||||||
return switch (zigBackend(target, false)) {
|
return switch (zigBackend(target, false)) {
|
||||||
.stage2_aarch64 => .yes,
|
.stage2_aarch64, .stage2_x86_64 => .yes,
|
||||||
.stage2_x86_64 => switch (target.ofmt) {
|
|
||||||
.elf, .macho => .yes,
|
|
||||||
else => .llvm_only,
|
|
||||||
},
|
|
||||||
else => .llvm_only,
|
else => .llvm_only,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue