aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-02-21 18:47:18 -0800
committerDan Willemsen <dwillemsen@google.com>2018-02-21 18:47:18 -0800
commit23b9efa8ff460825e7a2abf6a6a22229152eb711 (patch)
tree6ec31d561451513e75ad9257aab6832c024c8f56
parent3875a153ad34b20d48a22b65c9532c243bddc257 (diff)
downloadllvm-23b9efa8ff460825e7a2abf6a6a22229152eb711.tar.gz
Add SourceFileGenerator.GeneratedDeps()
To clean up unnecessary dependencies when using generated headers, GeneratedDeps() should return a single file from every build entry. GeneratedSourceFiles() used to be used from this, but now if you create one build rule with multiple outputs, it's valid to only return a single output file. In this case, ModuleBuild is called once per source file, each outputing a single output file, so all of them still need to be listed. Bug: 73745773 Test: diff out/soong/build.ninja Test: diff out/soong/Android-aosp_arm.mk Test: rm -rf out; m Change-Id: I073e3be7ecd9545f4002ad94d3da44f1a6652baa
-rw-r--r--soong/tblgen.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/soong/tblgen.go b/soong/tblgen.go
index b82c81efb0a1..b0067be36d0a 100644
--- a/soong/tblgen.go
+++ b/soong/tblgen.go
@@ -145,6 +145,10 @@ func (t *tblgen) GeneratedHeaderDirs() android.Paths {
}
func (t *tblgen) GeneratedSourceFiles() android.Paths {
+ return nil
+}
+
+func (t *tblgen) GeneratedDeps() android.Paths {
return t.generatedHeaders
}