Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/windows-bootstrap-fail-on-non-x86'
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Feb 9, 2024
2 parents b53acfe + c92f714 commit 9de324d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/bootstrap/bootstrap-haskell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ function Exec
}
}

# Only x86 32/64-bit is supported
$SupportedArchitectures = 'AMD64', 'x86'
if (!$SupportedArchitectures.contains($env:PROCESSOR_ARCHITECTURE)) {
Print-Msg -color Red -msg ("Unsupported processor architecture: {0}. Supported architectures: {1}." -f $env:PROCESSOR_ARCHITECTURE, ($SupportedArchitectures -join ", "))
Exit 1
}

$ErrorActionPreference = 'Stop'

$GhcupBasePrefixEnv = [System.Environment]::GetEnvironmentVariable('GHCUP_INSTALL_BASE_PREFIX', 'user')
Expand Down

0 comments on commit 9de324d

Please sign in to comment.