mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 19:13:30 +01:00
fix(build): bad value #4230
This commit is contained in:
parent
1c60325242
commit
1d6421045a
16
buildwin.ps1
16
buildwin.ps1
@ -94,18 +94,18 @@ function Add-VSCOMNTOOLS([int] $vsver)
|
||||
$range='[17.0,18.0)'
|
||||
}
|
||||
|
||||
if ($platform -eq 'x64')
|
||||
{
|
||||
$global:installationPath = Get-VSSetupInstance | `
|
||||
Select-VSSetupInstance -Version $range -product * -Latest -Require Microsoft.VisualStudio.Component.VC.Tools.x86.x64 | `
|
||||
Select-Object InstallationPath
|
||||
}
|
||||
elseif ($platform -eq 'ARM64')
|
||||
if ($platform -eq 'ARM64')
|
||||
{
|
||||
$global:installationPath = Get-VSSetupInstance | `
|
||||
Select-VSSetupInstance -Version $range -product * -Latest -Require Microsoft.VisualStudio.Component.VC.Tools.ARM64 | `
|
||||
Select-Object InstallationPath
|
||||
}
|
||||
else
|
||||
{
|
||||
$global:installationPath = Get-VSSetupInstance | `
|
||||
Select-VSSetupInstance -Version $range -product * -Latest -Require Microsoft.VisualStudio.Component.VC.Tools.x86.x64 | `
|
||||
Select-Object InstallationPath
|
||||
}
|
||||
|
||||
$vscomntools = $installationPath.psobject.properties.Value;
|
||||
if ($vsver -eq 150)
|
||||
@ -187,7 +187,7 @@ function Set-Environment
|
||||
$Command = ''
|
||||
$CommandArg = ''
|
||||
if ($platform -eq 'x64') { $CommandArg = "amd64" }
|
||||
if ($platform -eq 'ARM64') { $CommandArg = "ARM64" }
|
||||
elseif ($platform -eq 'ARM64') { $CommandArg = "ARM64" }
|
||||
else { $CommandArg = "x86" }
|
||||
if ($vs -eq 150)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user