diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-02 18:50:01 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-02 18:50:01 -0700 |
| commit | 807a8b6f7549732d73239a649886cc64f0303f34 (patch) | |
| tree | d947dae63f799b66432744ae3b000f141d71e4cf /lib/std/start.zig | |
| parent | 5f4c52209eab66666cc4a8fd24bf27c372cfd54f (diff) | |
| download | zig-807a8b6f7549732d73239a649886cc64f0303f34.tar.gz zig-807a8b6f7549732d73239a649886cc64f0303f34.zip | |
stage2: make struct field analysis lazy
This commit breaks struct field analysis; will be fixed in a future
commit.
Diffstat (limited to 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index ccd7ae410d..68fcd1955d 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -29,10 +29,10 @@ comptime { if (builtin.zig_is_stage2) { if (builtin.output_mode == .Exe) { if (builtin.link_libc or builtin.object_format == .c) { - @export(main2, "main"); + @export(main2, .{ .name = "main" }); } else { if (!@hasDecl(root, "_start")) { - @export(_start2, "_start"); + @export(_start2, .{ .name = "_start" }); } } } |
