authorgravatar for xq@random-projects.netFelix "xq" Queißner <xq@random-projects.net> 2021-12-17 11:27:14+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-17 14:31:59-08:00
logc1745b289689902945bd8171b0518d57e53557ec
treeef31595bcf5b0291895d9da79c054614e50b8099
parentef0566df7858df3a770a2b3112ca991358974be3

Actually installs the implib for DLLs.


1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/build.zig+4
...@@ -2952,6 +2952,10 @@ pub const InstallArtifactStep = struct {...@@ -2952,6 +2952,10 @@ pub const InstallArtifactStep = struct {
2952 if (self.artifact.isDynamicLibrary() and self.artifact.version != null and self.artifact.target.wantSharedLibSymLinks()) {2952 if (self.artifact.isDynamicLibrary() and self.artifact.version != null and self.artifact.target.wantSharedLibSymLinks()) {
2953 try doAtomicSymLinks(builder.allocator, full_dest_path, self.artifact.major_only_filename.?, self.artifact.name_only_filename.?);2953 try doAtomicSymLinks(builder.allocator, full_dest_path, self.artifact.major_only_filename.?, self.artifact.name_only_filename.?);
2954 }2954 }
2955 if (self.artifact.isDynamicLibrary() and self.artifact.target.isWindows() and self.artifact.emit_implib != .no_emit) {
2956 const full_implib_path = builder.getInstallPath(self.dest_dir, self.artifact.out_lib_filename);
2957 try builder.updateFile(self.artifact.getOutputLibSource().getPath(builder), full_implib_path);
2958 }
2955 if (self.pdb_dir) |pdb_dir| {2959 if (self.pdb_dir) |pdb_dir| {
2956 const full_pdb_path = builder.getInstallPath(pdb_dir, self.artifact.out_pdb_filename);2960 const full_pdb_path = builder.getInstallPath(pdb_dir, self.artifact.out_pdb_filename);
2957 try builder.updateFile(self.artifact.getOutputPdbSource().getPath(builder), full_pdb_path);2961 try builder.updateFile(self.artifact.getOutputPdbSource().getPath(builder), full_pdb_path);