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