From c1745b289689902945bd8171b0518d57e53557ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20=22xq=22=20Quei=C3=9Fner?= Date: Fri, 17 Dec 2021 11:27:14 +0100 Subject: [PATCH] Actually installs the implib for DLLs. --- lib/std/build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/std/build.zig b/lib/std/build.zig index e5a6e6e471..dae43d441a 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -2952,6 +2952,10 @@ pub const InstallArtifactStep = struct { if (self.artifact.isDynamicLibrary() and self.artifact.version != null and self.artifact.target.wantSharedLibSymLinks()) { try doAtomicSymLinks(builder.allocator, full_dest_path, self.artifact.major_only_filename.?, self.artifact.name_only_filename.?); } + if (self.artifact.isDynamicLibrary() and self.artifact.target.isWindows() and self.artifact.emit_implib != .no_emit) { + const full_implib_path = builder.getInstallPath(self.dest_dir, self.artifact.out_lib_filename); + try builder.updateFile(self.artifact.getOutputLibSource().getPath(builder), full_implib_path); + } if (self.pdb_dir) |pdb_dir| { const full_pdb_path = builder.getInstallPath(pdb_dir, self.artifact.out_pdb_filename); try builder.updateFile(self.artifact.getOutputPdbSource().getPath(builder), full_pdb_path);