more cleanup. down to just the @hasDecl builtin

This commit is contained in:
Andrew Kelley
2019-05-26 13:37:34 -04:00
parent 2f040a23c8
commit 44a049e01e
11 changed files with 63 additions and 42 deletions
+1 -1
View File
@@ -846,7 +846,7 @@ pub const Target = union(enum) {
}
pub fn oFileExt(self: Target) []const u8 {
const abi = switch (self.*) {
const abi = switch (self) {
Target.Native => builtin.abi,
Target.Cross => |t| t.abi,
};