From 81532c27628a42cb85488383c8b9421ea44fb72b Mon Sep 17 00:00:00 2001 From: Prashanth Swaminathan Date: Wed, 26 Jul 2023 09:43:31 -0700 Subject: [PATCH] Revert "Revert "Set VIC as minimum SDK version for riscv64"" This reverts commit 02f4e6f559c01a0903f96b95faea1d086e68e855. Change-Id: I9fb87e2789bbc8437da56faa335de49865e08350 --- cc/api_level.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cc/api_level.go b/cc/api_level.go index a5571f31f..69a0d3ae4 100644 --- a/cc/api_level.go +++ b/cc/api_level.go @@ -31,7 +31,11 @@ func MinApiForArch(ctx android.EarlyModuleContext, case android.Arm64, android.X86_64: return android.FirstLp64Version case android.Riscv64: - return android.FutureApiLevel + apiLevel, err := android.ApiLevelFromUser(ctx, "VanillaIceCream") + if err != nil { + panic(err) + } + return apiLevel default: panic(fmt.Errorf("Unknown arch %q", arch)) }