diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-08-22 13:38:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-08-22 13:38:54 -0700 |
| commit | 4e63cae369ec6e333e4aecb3d749bedff6484ee3 (patch) | |
| tree | 7f428fe750a9248cad7db55f8d889a02e474869e /lib/std/target.zig | |
| parent | 29051a0674800881957479c423a1feb043391671 (diff) | |
| parent | 54f3b0a560f17effbb582f86ebf83c53916fc697 (diff) | |
| download | zig-4e63cae369ec6e333e4aecb3d749bedff6484ee3.tar.gz zig-4e63cae369ec6e333e4aecb3d749bedff6484ee3.zip | |
Merge branch 'pixelherodev-spu_ii'
closes #6096
Diffstat (limited to 'lib/std/target.zig')
| -rw-r--r-- | lib/std/target.zig | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/std/target.zig b/lib/std/target.zig index b162bdd0c3..080ac65f5c 100644 --- a/lib/std/target.zig +++ b/lib/std/target.zig @@ -663,6 +663,9 @@ pub const Target = struct { renderscript32, renderscript64, ve, + // Stage1 currently assumes that architectures above this comment + // map one-to-one with the ZigLLVM_ArchType enum. + spu_2, pub fn isARM(arch: Arch) bool { return switch (arch) { @@ -761,6 +764,7 @@ pub const Target = struct { .sparcv9 => ._SPARCV9, .s390x => ._S390, .ve => ._NONE, + .spu_2 => ._SPU_2, }; } @@ -803,6 +807,7 @@ pub const Target = struct { .renderscript64, .shave, .ve, + .spu_2, => .Little, .arc, @@ -827,6 +832,7 @@ pub const Target = struct { switch (arch) { .avr, .msp430, + .spu_2, => return 16, .arc, @@ -1317,12 +1323,13 @@ pub const Target = struct { .bpfeb, .nvptx, .nvptx64, + .spu_2, + .avr, => return result, // TODO go over each item in this list and either move it to the above list, or // implement the standard dynamic linker path code for it. .arc, - .avr, .hexagon, .msp430, .r600, |
