From 0dab9c36379fa05dbdc78c6da642d8cd9559ef2e Mon Sep 17 00:00:00 2001 From: Elias Toivola Date: Fri, 8 May 2026 20:40:44 +0300 Subject: [PATCH] Windows: clean up vcpkg buildtrees and packages in provisioning After vcpkg has installed libraries, only the contents of $vcpkgRoot\installed are needed by Qt builds. The vcpkg \buildtrees and \packages directories should be deleted to significantly reduce Windows tier-2 image size. Pick-to: 6.11 6.8 Task-number: QTBUG-115715 Change-Id: I311242c61ba7000cdcc49b0f6ff92cf343e209c9 Reviewed-by: Joerg Bornemann --- coin/provisioning/common/windows/install-vcpkg-ports.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coin/provisioning/common/windows/install-vcpkg-ports.ps1 b/coin/provisioning/common/windows/install-vcpkg-ports.ps1 index 79f9ea3f..a20ce0f4 100644 --- a/coin/provisioning/common/windows/install-vcpkg-ports.ps1 +++ b/coin/provisioning/common/windows/install-vcpkg-ports.ps1 @@ -21,5 +21,7 @@ Run-Executable "cmake" "-DVCPKG_EXECUTABLE=$vcpkgExe -DVCPKG_INSTALL_ROOT=$vcpkg Set-EnvironmentVariable "VCPKG_INSTALLED_DIR" "$vcpkgRoot\installed" Remove-Item -Path "$vcpkginstallroot" -Recurse -Force +Remove-Item -Path "$vcpkgRoot\buildtrees" -Recurse -Force +Remove-Item -Path "$vcpkgRoot\packages" -Recurse -Force Set-Location "$PSScriptRoot"