Remove reference to stage2_os

This commit is contained in:
Martin Wickham 2021-09-22 14:14:03 -05:00
parent d6e87da47b
commit 4782bededa

View File

@ -28,7 +28,7 @@ comptime {
if (@typeInfo(@TypeOf(root.main)).Fn.calling_convention != .C) {
@export(main2, .{ .name = "main" });
}
} else if (builtin.stage2_os == .windows) {
} else if (builtin.os.tag == .windows) {
@export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" });
} else {
if (!@hasDecl(root, "_start")) {