Merge "Skip writing ninja file for module with a cache hit during incremental build." into main am: 8bf4079e5f
am: 2db4f06825
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3199910 Change-Id: I6988b418ceb8e4d14c9b5278c1ada714c74c7d84 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -220,15 +220,10 @@ func (module *DeclarationsModule) GenerateAndroidBuildActions(ctx android.Module
|
||||
}
|
||||
|
||||
func (module *DeclarationsModule) BuildActionProviderKeys() []blueprint.AnyProviderKey {
|
||||
return []blueprint.AnyProviderKey{android.AconfigDeclarationsProviderKey}
|
||||
}
|
||||
|
||||
func (module *DeclarationsModule) PackageContextPath() string {
|
||||
return pkgPath
|
||||
}
|
||||
|
||||
func (module *DeclarationsModule) CachedRules() []blueprint.Rule {
|
||||
return []blueprint.Rule{aconfigRule, aconfigTextRule}
|
||||
return []blueprint.AnyProviderKey{
|
||||
android.AconfigDeclarationsProviderKey,
|
||||
android.AconfigReleaseDeclarationsProviderKey,
|
||||
}
|
||||
}
|
||||
|
||||
var _ blueprint.Incremental = &DeclarationsModule{}
|
||||
|
@@ -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{})
|
||||
}
|
||||
|
||||
|
@@ -1921,7 +1921,7 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext)
|
||||
|
||||
restored := false
|
||||
if incrementalAnalysis && cacheKey != nil {
|
||||
restored = ctx.bp.RestoreBuildActions(cacheKey, incrementalModule)
|
||||
restored = ctx.bp.RestoreBuildActions(cacheKey)
|
||||
}
|
||||
|
||||
if !restored {
|
||||
|
Reference in New Issue
Block a user