File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,11 @@ $AndroidSDKArchs = @($AndroidSDKs | ForEach-Object {
344344 default { throw " Unknown architecture $_ " }
345345 }
346346})
347+ if ($AndroidSDKArchs.count -gt 0 ) {
348+ if ($HostArch -ne $ArchX64 ) {
349+ throw " Unsupported host architecture for building android SDKs"
350+ }
351+ }
347352$WindowsSDKArchs = @ ($WindowsSDKs | ForEach-Object {
348353 switch ($_ ) {
349354 " X64" { $ArchX64 }
@@ -662,6 +667,10 @@ function Fetch-Dependencies {
662667 }
663668
664669 if ($AndroidSDKArchs.count -gt 0 ) {
670+ # Only a specific NDK version is supported right now.
671+ if ($AndroidNDKVersion -ne " r26b" ) {
672+ throw " Unsupported Android NDK version"
673+ }
665674 $NDKURL = " https://dl.google.com/android/repository/android-ndk-r26b-windows.zip"
666675 $NDKHash = " A478D43D4A45D0D345CDA6BE50D79642B92FB175868D9DC0DFC86181D80F691E"
667676 DownloadAndVerify $NDKURL " $BinaryCache \android-ndk-$AndroidNDKVersion -windows.zip" $NDKHash
You can’t perform that action at this time.
0 commit comments