diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-09 13:08:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-09 13:08:58 +0200 |
| commit | 56b96cd61b0bdb7f5b11a5283fe6dd5b585ef10e (patch) | |
| tree | a19765f949fd7ce1d1d6fdbcf684a812d30e634a /lib/std/start.zig | |
| parent | a833bdcd7e6fcfee6e9cc33a3f7de78b16a36941 (diff) | |
| parent | 5006fb6846ccaa7edb1547588cf1aa08c8decf2b (diff) | |
| download | zig-56b96cd61b0bdb7f5b11a5283fe6dd5b585ef10e.tar.gz zig-56b96cd61b0bdb7f5b11a5283fe6dd5b585ef10e.zip | |
Merge pull request #12772 from ziglang/coff-basic-imports
coff: implement enough of the incremental linker to pass behavior and incremental tests on Windows
Diffstat (limited to 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index 49094ab02d..9f70cce1ea 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -36,6 +36,10 @@ comptime { if (@typeInfo(@TypeOf(root.main)).Fn.calling_convention != .C) { @export(main2, .{ .name = "main" }); } + } else if (builtin.os.tag == .windows) { + if (!@hasDecl(root, "wWinMainCRTStartup") and !@hasDecl(root, "mainCRTStartup")) { + @export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" }); + } } else if (builtin.os.tag == .wasi and @hasDecl(root, "main")) { @export(wasiMain2, .{ .name = "_start" }); } else { |
