diff options
author | 2023-01-26 09:54:42 -0800 | |
---|---|---|
committer | 2023-01-27 19:49:38 +0000 | |
commit | bb137a3956ac458ec86dfe554a7323c8f0523ce2 (patch) | |
tree | b36a57341a3d34150b14e92fbcabaa746b5c5530 /cc/api_level.go | |
parent | 363ec76a6d7ea93bb7abff05d282fe56057cdba9 (diff) |
Disable VNDK apexes for unsupported API levels
Disable VNDK apexes when their version is below the minimum
supported API level for the primary architecture.
Test: TestVndkApexCurrent
Change-Id: Ie72a5beb9da432660d3fec5c520402224326f961
Diffstat (limited to 'cc/api_level.go')
-rw-r--r-- | cc/api_level.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/api_level.go b/cc/api_level.go index fdff5cbcf..a5571f31f 100644 --- a/cc/api_level.go +++ b/cc/api_level.go @@ -20,7 +20,9 @@ import ( "android/soong/android" ) -func minApiForArch(ctx android.EarlyModuleContext, +// MinApiLevelForArch returns the ApiLevel for the Android version that +// first supported the architecture. +func MinApiForArch(ctx android.EarlyModuleContext, arch android.ArchType) android.ApiLevel { switch arch { @@ -38,7 +40,7 @@ func minApiForArch(ctx android.EarlyModuleContext, func nativeApiLevelFromUser(ctx android.BaseModuleContext, raw string) (android.ApiLevel, error) { - min := minApiForArch(ctx, ctx.Arch().ArchType) + min := MinApiForArch(ctx, ctx.Arch().ArchType) if raw == "minimum" { return min, nil } |