| ... | ... | @@ -91,8 +91,9 @@ comptime { |
| 91 | 91 | // Only call main when defined. For WebAssembly it's allowed to pass `-fno-entry` in which |
| 92 | 92 | // case it's not required to provide an entrypoint such as main. |
| 93 | 93 | if (!@hasDecl(root, start_sym_name) and @hasDecl(root, "main")) @export(&wasm_freestanding_start, .{ .name = start_sym_name }); |
| 94 | | } else if (native_os != .other and native_os != .freestanding) { |
| 95 | | if (!@hasDecl(root, start_sym_name)) @export(&_start, .{ .name = start_sym_name }); |
| 94 | } else switch (native_os) { |
| 95 | .other, .freestanding, .@"3ds", .vita => {}, |
| 96 | else => if (!@hasDecl(root, start_sym_name)) @export(&_start, .{ .name = start_sym_name }), |
| 96 | 97 | } |
| 97 | 98 | } |
| 98 | 99 | } |