diff options
author | 2024-07-30 17:30:45 +0000 | |
---|---|---|
committer | 2024-08-02 22:11:46 +0000 | |
commit | f072120c00898157f5306161a1da06ecc2c1fd6a (patch) | |
tree | 6140d6b918e8fed8d0b46b49c86913a314288dc2 /aconfig/init.go | |
parent | 2800675b3143b9a8cbf941118a3bad60e30f6878 (diff) |
Skip writing ninja file for module with a cache hit during incremental build.
This is just the first change, many more will come to make this feature
really work. The main changes included here are:
1. Skip the writing of ninja file if a module has a cache hit.
2. Handle the case where a skipped module doesn't have the build defs
info for the OrderOnlyStrings dedup logic to work by caching the
missing info.
Bug: 335718784
Test: local manual tests
Change-Id: I32542bd1e7fd268113e072e7f68b51b293d83d03
Diffstat (limited to 'aconfig/init.go')
-rw-r--r-- | aconfig/init.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aconfig/init.go b/aconfig/init.go index de155ab52..5fa7e76ae 100644 --- a/aconfig/init.go +++ b/aconfig/init.go @@ -23,8 +23,7 @@ import ( ) var ( - pkgPath = "android/soong/aconfig" - pctx = android.NewPackageContext(pkgPath) + pctx = android.NewPackageContext("android/soong/aconfig") // For aconfig_declarations: Generate cache file aconfigRule = pctx.AndroidStaticRule("aconfig", @@ -111,6 +110,7 @@ func init() { pctx.HostBinToolVariable("soong_zip", "soong_zip") gob.Register(android.AconfigDeclarationsProviderData{}) + gob.Register(android.AconfigReleaseDeclarationsProviderData{}) gob.Register(android.ModuleOutPath{}) } |