From 524dc756b30c19db070362c8094459c7c8e4fd8a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 26 Dec 2023 23:45:44 -0700 Subject: 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. --- src/link.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/link.zig') 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, -- cgit v1.2.3