Skip to content

Commit e327320

Browse files
Pass flags to bundle the vcredist installer
* Pass flags to bundle the vcredist installer. * Remove extra property set * Update to match latest installer revision
1 parent 166ea77 commit e327320

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.azure/vs2022.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,8 @@ stages:
20672067
-p:ProductVersion=${{ parameters.ProductVersion }}${{ parameters.BuildTag }}
20682068
-p:CERTIFICATE=$(certificate.secureFilePath)
20692069
-p:PASSPHRASE=$(CERTIFICATE_PASSWORD)
2070+
-p:VCRedistInstaller="${env:VCToolsRedistDir}\vc_redist.${env:VSCMD_ARG_TGT_ARCH}.exe"
2071+
-p:VSVersion=${env:VSCMD_VER}
20702072
-p:INCLUDE_AMD64_SDK=true
20712073
-p:INCLUDE_X86_SDK=true
20722074
-p:INCLUDE_ARM64_SDK=true

.github/workflows/swift-toolchain.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,8 @@ jobs:
19691969
-p:CERTIFICATE=${env:CERTIFICATE} `
19701970
-p:PASSPHRASE=${{ secrets.PASSPHRASE }} `
19711971
-p:BundleFlavor=offline `
1972+
-p:VCRedistInstaller="${env:VCToolsRedistDir}\vc_redist.${env:VSCMD_ARG_TGT_ARCH}.exe" `
1973+
-p:VSVersion=${env:VSCMD_VER} `
19721974
-p:INCLUDE_AMD64_SDK=true `
19731975
-p:INCLUDE_X86_SDK=true `
19741976
-p:INCLUDE_ARM64_SDK=true `

build.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,15 @@ function Build-Installer() {
15621562
SWIFT_DOCC_RENDER_ARTIFACT_ROOT = "${SourceCache}\swift-docc-render-artifact";
15631563
}
15641564

1565+
Isolate-EnvVars {
1566+
Invoke-VsDevShell $HostArch
1567+
$VCRedistInstallerPath = "${env:VCToolsRedistDir}\vc_redist.$($HostArch.ShortName).exe"
1568+
if (Test-Path $VCRedistInstallerPath) {
1569+
$Properties["VCRedistInstaller"] = $VCRedistInstallerPath
1570+
$Properties["VSVersion"] = $env:VSCMD_VER
1571+
}
1572+
}
1573+
15651574
foreach ($Arch in $SDKArchs) {
15661575
$Properties["INCLUDE_$($Arch.VSName.ToUpperInvariant())_SDK"] = "true"
15671576
$Properties["PLATFORM_ROOT_$($Arch.VSName.ToUpperInvariant())"] = "$($Arch.PlatformInstallRoot)\"

0 commit comments

Comments
 (0)