Commit 4782bededa

Martin Wickham <spexguy070@gmail.com>
2021-09-22 21:14:03
Remove reference to stage2_os
1 parent d6e87da
Changed files (1)
lib
lib/std/start.zig
@@ -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")) {