Skip to content

Commit

Permalink
fix(build): bad value #4230
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavle authored and aleks-f committed Nov 27, 2023
1 parent 646a78c commit ecdc1c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions buildwin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ function Add-VSCOMNTOOLS([int] $vsver)
$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-VSSetupInstance -Version $range -product * -Latest -Require Microsoft.VisualStudio.Component.VC.Tools.ARM64 | `
Select-Object InstallationPath
}
elseif ($platform -eq 'ARM64')
else
{
$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.x86.x64 | `
Select-Object InstallationPath
}

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit ecdc1c2

Please sign in to comment.