Skip to content

Commit 5ea5138

Browse files
committed
Complain on invalid usage
Apparently not specifying a platform means "don't do anything" which is counterintuitive. Tell people we're not going to do anything.
1 parent ec1c356 commit 5ea5138

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.libgit2.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ function Assert-Consistent-Naming($expected, $path) {
104104
}
105105

106106
try {
107+
if ((!$x86.isPresent -and !$x64.IsPresent) -and !$arm64.IsPresent) {
108+
Write-Output -Stderr "Error: usage $MyInvocation.MyCommand [-x86] [-x64] [-arm64]"
109+
Exit
110+
}
111+
107112
Push-Location $libgit2Directory
108113

109114
$cmake = Find-CMake

0 commit comments

Comments
 (0)