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 {
344
344
default { throw " Unknown architecture $_ " }
345
345
}
346
346
})
347
+ if ($AndroidSDKArchs.count -gt 0 ) {
348
+ if ($HostArch -ne $ArchX64 ) {
349
+ throw " Unsupported host architecture for building android SDKs"
350
+ }
351
+ }
347
352
$WindowsSDKArchs = @ ($WindowsSDKs | ForEach-Object {
348
353
switch ($_ ) {
349
354
" X64" { $ArchX64 }
@@ -662,6 +667,10 @@ function Fetch-Dependencies {
662
667
}
663
668
664
669
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
+ }
665
674
$NDKURL = " https://dl.google.com/android/repository/android-ndk-r26b-windows.zip"
666
675
$NDKHash = " A478D43D4A45D0D345CDA6BE50D79642B92FB175868D9DC0DFC86181D80F691E"
667
676
DownloadAndVerify $NDKURL " $BinaryCache \android-ndk-$AndroidNDKVersion -windows.zip" $NDKHash
You can’t perform that action at this time.
0 commit comments