fix(build): bad value #4230

This commit is contained in:
Pavle 2023-11-07 17:38:48 +01:00
parent 1c60325242
commit 1d6421045a

View File

@ -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)
{