build.ps1 270 B

12345678910111213141516
  1. # Run the build
  2. #Requires -Version 4.0
  3. $ErrorActionPreference = "Stop"
  4. . "$PSScriptRoot\functions.ps1"
  5. $msysbash = Get-MSYS2Bash "$msysprefix"
  6. $env:CHERE_INVOKING = 'yes'
  7. & $msysbash -l "$PSScriptRoot\compile-on-windows.sh"
  8. if ($LastExitcode -ne 0) {
  9. exit 1
  10. }