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