mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std.Target: Add comments for deliberately omitted/removed LLVM tags.
This commit is contained in:
parent
db8bc4770c
commit
84e9aec13f
@ -63,6 +63,11 @@ pub const Os = struct {
|
||||
illumos,
|
||||
other,
|
||||
|
||||
// LLVM tags deliberately omitted:
|
||||
// - kfreebsd
|
||||
// - darwin
|
||||
// - nacl
|
||||
|
||||
pub inline fn isDarwin(tag: Tag) bool {
|
||||
return switch (tag) {
|
||||
.ios, .macos, .watchos, .tvos, .visionos => true,
|
||||
@ -653,6 +658,10 @@ pub const Abi = enum {
|
||||
amplification,
|
||||
ohos,
|
||||
|
||||
// LLVM tags deliberately omitted:
|
||||
// - gnuf64
|
||||
// - coreclr
|
||||
|
||||
pub fn default(arch: Cpu.Arch, os: Os) Abi {
|
||||
return if (arch.isWasm()) .musl else switch (os.tag) {
|
||||
.freestanding,
|
||||
@ -1021,6 +1030,18 @@ pub const Cpu = struct {
|
||||
ve,
|
||||
spu_2,
|
||||
|
||||
// LLVM tags deliberately omitted:
|
||||
// - r600
|
||||
// - le32
|
||||
// - le64
|
||||
// - amdil
|
||||
// - amdil64
|
||||
// - hsail
|
||||
// - hsail64
|
||||
// - shave
|
||||
// - renderscript32
|
||||
// - renderscript64
|
||||
|
||||
pub inline fn isX86(arch: Arch) bool {
|
||||
return switch (arch) {
|
||||
.x86, .x86_64 => true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user