From 14f6a3b06932143fbdb7d9a59716f55efacdbe01 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Mon, 16 Nov 2026 12:18:13 +0100 Subject: [PATCH 1/3] Use zlib 1.4 MSVC library names zlib 1.4 names its MSVC libraries libz, libzd, libzs and libzsd. Use libs instead of lit_libs so that MPC appends the matching lib_modifier for debug and static builds. Co-Authored-By: Claude Opus 5.5 --- config/zlib.mpb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/zlib.mpb b/config/zlib.mpb index 8edc952e..912e59be 100644 --- a/config/zlib.mpb +++ b/config/zlib.mpb @@ -14,8 +14,9 @@ feature(zlib) { macros += ZLIB specific(prop:windows) { - Debug::lit_libs += zd - Release::lit_libs += z + // zlib 1.4 names its MSVC libraries libz, libzd, libzs and libzsd, + // which matches libz with the lib_modifier MPC adds + libs += libz } else { lit_libs += z } From d3d35609a67972f1ce3d501c343eb26becc83cd1 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Mon, 16 Nov 2026 12:20:16 +0100 Subject: [PATCH 2/3] Use vcpkg master with zlib 1.4 for Windows CI The 2026.10.16 vcpkg release still has zlib 1.3.2, pin to a master commit that includes zlib 1.4 until the next vcpkg release. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0404880b..175029d9 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -67,7 +67,7 @@ jobs: - name: Install vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: cd61e1e26a038e82d6550a3ebbe0fbbfe7da78e3 + vcpkgGitCommitId: 8f363bdc11359ede4bc51e5eb32a2617538049c8 runVcpkgInstall: true - name: create $ACE_ROOT/ace/config.h run: | From ccf8da8cf148e0c5462df0f1cf70968c178a52ec Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Mon, 16 Nov 2026 12:38:04 +0100 Subject: [PATCH 3/3] Allow overriding the Windows zlib library name Add ZLIB_LIBNAME, defaulting to libz, so that users of zlib versions older than 1.4 can set it to z. Co-Authored-By: Claude Opus 5.5 --- config/zlib.mpb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config/zlib.mpb b/config/zlib.mpb index 912e59be..39083787 100644 --- a/config/zlib.mpb +++ b/config/zlib.mpb @@ -8,6 +8,10 @@ feature(zlib) { $ZLIB_LIBDIR $(ZLIB_ROOT)/lib } + expand(ZLIB_LIBNAME) { + $ZLIB_LIBNAME + libz + } includes += "$(ZLIB_INCDIR)" libpaths += "$(ZLIB_LIBDIR)" @@ -15,8 +19,9 @@ feature(zlib) { specific(prop:windows) { // zlib 1.4 names its MSVC libraries libz, libzd, libzs and libzsd, - // which matches libz with the lib_modifier MPC adds - libs += libz + // which matches libz with the lib_modifier MPC adds. Set ZLIB_LIBNAME + // to z for older zlib versions that use z, zd, zs and zsd. + libs += $(ZLIB_LIBNAME) } else { lit_libs += z }