diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-30 11:24:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-30 11:24:15 -0700 |
| commit | fb95fd84431e399d79266d5c9c4acd8ea124399a (patch) | |
| tree | ee18dff0451955be7115b94bdf725dc92ae1163e /src/codegen.zig | |
| parent | 2d8d681b5ee34663aa87f0583f7b1a012b17d5b4 (diff) | |
| download | zig-fb95fd84431e399d79266d5c9c4acd8ea124399a.tar.gz zig-fb95fd84431e399d79266d5c9c4acd8ea124399a.zip | |
start.zig: unconditionally import the root source file
stage1 did this by accident by unconditionally semantically analyzing
std.builtin.panic, which imports the root source file to look for a
panic handler override. But stage2 is smarter; it will only semantically
analyze std.builtin.panic if any panic calls are emitted. So for very
simple compilations, the root source file was being ignored, even if it
contained `export` functions in it.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
