mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
start: allow for explicitly defined entry point for Win
This commit is contained in:
parent
527055a821
commit
06371950cf
@ -37,7 +37,9 @@ comptime {
|
|||||||
@export(main2, .{ .name = "main" });
|
@export(main2, .{ .name = "main" });
|
||||||
}
|
}
|
||||||
} else if (builtin.os.tag == .windows) {
|
} else if (builtin.os.tag == .windows) {
|
||||||
@export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" });
|
if (!@hasDecl(root, "wWinMainCRTStartup")) {
|
||||||
|
@export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" });
|
||||||
|
}
|
||||||
} else if (builtin.os.tag == .wasi and @hasDecl(root, "main")) {
|
} else if (builtin.os.tag == .wasi and @hasDecl(root, "main")) {
|
||||||
@export(wasiMain2, .{ .name = "_start" });
|
@export(wasiMain2, .{ .name = "_start" });
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user