diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-28 15:42:09 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-28 15:42:09 -0700 |
| commit | 412a2f966e18aa792089ac1f41482222d7f2434f (patch) | |
| tree | 36f4d7f00ce93bc3f10844e3bbf56f75c8ddba8d /src/Cache.zig | |
| parent | 91a73a177bc20fa0219dbb6c3cf3dda1c2a465db (diff) | |
| download | zig-412a2f966e18aa792089ac1f41482222d7f2434f.tar.gz zig-412a2f966e18aa792089ac1f41482222d7f2434f.zip | |
store stage1 flags in a trailing byte in the hash id symlink
When we get a cache hit for a stage1 compilation, we need to know about
some of the flags such as have_winmain or have_dllmain to know which
subsystem to infer during linking.
To do this, we append a hex-encoded byte into the intentionally-dangling
symlink which contains the cache hash digest rather than a filename. The
hex-encoded byte contains the flags we need to infer the subsystem
during linking.
Diffstat (limited to 'src/Cache.zig')
0 files changed, 0 insertions, 0 deletions
