diff options
author | Colin Cross <ccross@android.com> | 2017-11-29 00:27:14 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-11-30 00:44:18 +0000 |
commit | 6510f91a1c8a40b6b06d382792d4da1a72eb1118 (patch) | |
tree | 4511e4f6ee6f7d43d03b7489ede41b6f22b2a559 /cc/cc.go | |
parent | aabf67968c4abc98d94bd8ccd6d612246b2fbbdc (diff) | |
download | build_soong-6510f91a1c8a40b6b06d382792d4da1a72eb1118.tar.gz build_soong-6510f91a1c8a40b6b06d382792d4da1a72eb1118.tar.bz2 build_soong-6510f91a1c8a40b6b06d382792d4da1a72eb1118.zip |
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
Diffstat (limited to 'cc/cc.go')
-rw-r--r-- | cc/cc.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |