diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-26 23:45:44 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:21 -0700 |
| commit | 524dc756b30c19db070362c8094459c7c8e4fd8a (patch) | |
| tree | f0fc599599b9c8bfcdbfa0e6eed737ea21311fc2 /src/link.zig | |
| parent | 57562c8d507667b6fefcb7fbc7a305fbd610b5dd (diff) | |
| download | zig-524dc756b30c19db070362c8094459c7c8e4fd8a.tar.gz zig-524dc756b30c19db070362c8094459c7c8e4fd8a.zip | |
Compilation: several branch regression fixes
* move wasi_emulated_libs into Compilation
- It needs to be accessed from Compilation, which needs to potentially
build those artifacts.
* Compilation: improve error reporting for two cases
- the setMiscFailure mechanism is handy - let's use it!
* fix one instance of incorrectly checking for emit_bin via
`comp.bin_file != null`. There are more instances of this that need to
be fixed in a future commit.
* fix renameTmpIntoCache not handling the case where it needs to make
the "o" directory in the zig-cache directory.
- while I'm at it, simplify the logic for handling the fact that
Windows returns error.AccessDenied rather than
error.PathAlreadyExists for failure to rename a directory over
another one.
* fix missing cache hash additions
- there are still more to add in a future commit -
addNonIncrementalStuffToCacheManifest is called when bin_file is
always null, and then it incorrectly checks if bin_file is non-null
and only then adds a bunch of stuff to the cache hash. It needs to
instead add to the cache hash based on lf_open_opts.
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/link.zig b/src/link.zig index a051d27b12..fdcd5fcf41 100644 --- a/src/link.zig +++ b/src/link.zig @@ -170,8 +170,6 @@ pub const File = struct { /// (Windows) .def file to specify when linking module_definition_file: ?[]const u8, - wasi_emulated_libs: []const wasi_libc.CRTFile, - pub const Entry = union(enum) { default, disabled, |
