Fix panics when target arch is riscv64

Fix panics in api_level.go and apex.go when using riscv64 as the target
arch.

Bug: 250918230
Test: lunch aosp_riscv64-userdebug && m ALLOW_MISSING_DEPENDENCIES=true nothing
Change-Id: I85c7685f3d14fa2dc7ffbcdea7f490feca304ef7
This commit is contained in:
Colin Cross
2022-10-03 12:41:50 -07:00
parent b9238c0b72
commit a2aaa2fdef
4 changed files with 13 additions and 5 deletions

View File

@@ -28,6 +28,8 @@ func minApiForArch(ctx android.BaseModuleContext,
return ctx.Config().MinSupportedSdkVersion()
case android.Arm64, android.X86_64:
return android.FirstLp64Version
case android.Riscv64:
return android.FutureApiLevel
default:
panic(fmt.Errorf("Unknown arch %q", arch))
}