Replace ModuleContext.AConfig() with Config()
AConfig() now duplicates Config(). Replace the uses of AConfig() with Config(). Leave AConfig() for now until code in other projects is cleaned up. Test: m checkbuild Change-Id: Ic88be643049d21dba45dbd1a65588ed94bf43bdc
This commit is contained in:
6
cc/cc.go
6
cc/cc.go
@@ -945,7 +945,7 @@ func (c *Module) clang(ctx BaseModuleContext) bool {
|
||||
clang = true
|
||||
}
|
||||
|
||||
if ctx.Device() && ctx.AConfig().DeviceUsesClang() {
|
||||
if ctx.Device() && ctx.Config().DeviceUsesClang() {
|
||||
clang = true
|
||||
}
|
||||
}
|
||||
@@ -1441,10 +1441,10 @@ func vendorMutator(mctx android.BottomUpMutatorContext) {
|
||||
}
|
||||
|
||||
func getCurrentNdkPrebuiltVersion(ctx DepsContext) string {
|
||||
if ctx.AConfig().PlatformSdkVersionInt() > config.NdkMaxPrebuiltVersionInt {
|
||||
if ctx.Config().PlatformSdkVersionInt() > config.NdkMaxPrebuiltVersionInt {
|
||||
return strconv.Itoa(config.NdkMaxPrebuiltVersionInt)
|
||||
}
|
||||
return ctx.AConfig().PlatformSdkVersion()
|
||||
return ctx.Config().PlatformSdkVersion()
|
||||
}
|
||||
|
||||
var Bool = proptools.Bool
|
||||
|
Reference in New Issue
Block a user