| ... | ... | @@ -319,7 +319,7 @@ pub const Target = union(enum) { |
| 319 | 319 | inline for (info.Union.fields) |field| { |
| 320 | 320 | if (mem.eql(u8, text, field.name)) { |
| 321 | 321 | if (field.field_type == void) { |
| 322 | | return (Arch)(@field(Arch, field.name)); |
| 322 | return @as(Arch, @field(Arch, field.name)); |
| 323 | 323 | } else { |
| 324 | 324 | const sub_info = @typeInfo(field.field_type); |
| 325 | 325 | inline for (sub_info.Enum.fields) |sub_field| { |
| ... | ... | @@ -581,7 +581,7 @@ pub const Target = union(enum) { |
| 581 | 581 | }; |
| 582 | 582 | |
| 583 | 583 | pub fn getExternalExecutor(self: Target) Executor { |
| 584 | | if (@as(@TagType(Target),self) == .Native) return .native; |
| 584 | if (@as(@TagType(Target), self) == .Native) return .native; |
| 585 | 585 | |
| 586 | 586 | // If the target OS matches the host OS, we can use QEMU to emulate a foreign architecture. |
| 587 | 587 | if (self.getOs() == builtin.os) { |