ecs: remove stage1 compiler bug workaround
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1e87b2b78a
commit
dad8757d3a
1 changed files with 8 additions and 17 deletions
|
|
@ -47,23 +47,14 @@ pub fn Messages(comptime messages: anytype) type {
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(self-hosted): check if we can remove this now
|
return @Type(.{
|
||||||
// Hack to workaround stage1 compiler bug. https://github.com/ziglang/zig/issues/8114
|
.Union = .{
|
||||||
//
|
.layout = .Auto,
|
||||||
// return @Type(.{
|
.tag_type = MessagesTag(messages),
|
||||||
// .Union = .{
|
.fields = fields,
|
||||||
// .layout = .Auto,
|
.decls = &[_]std.builtin.Type.Declaration{},
|
||||||
// .tag_type = MessagesTag(messages),
|
},
|
||||||
// .fields = fields,
|
});
|
||||||
// .decls = &[_]std.builtin.Type.Declaration{},
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
const Ref = union(enum) { temp };
|
|
||||||
var info = @typeInfo(Ref);
|
|
||||||
info.Union.tag_type = MessagesTag(messages);
|
|
||||||
info.Union.fields = fields;
|
|
||||||
return @Type(info);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the tag enum for a tagged union representing the messages, turning this:
|
/// Returns the tag enum for a tagged union representing the messages, turning this:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue