diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-02-21 18:45:36 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-02-21 18:45:36 -0800 |
commit | 31aeb74d2adfdf80e20b8b2ad8a75a1ac2063584 (patch) | |
tree | 86521df27812a2f03f63ceeb45a9c29768f70924 | |
parent | d3b33b96ca2e0318d477b65c62b2d2e8f8beaaae (diff) | |
download | clang-31aeb74d2adfdf80e20b8b2ad8a75a1ac2063584.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: I6b302b8ebd2afd3a5ea042b906ba094986828249
-rw-r--r-- | soong/tblgen.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/soong/tblgen.go b/soong/tblgen.go index 608a8a99e3..67b9bb8e5a 100644 --- a/soong/tblgen.go +++ b/soong/tblgen.go @@ -163,6 +163,10 @@ func (t *tblgen) GeneratedHeaderDirs() android.Paths { } func (t *tblgen) GeneratedSourceFiles() android.Paths { + return nil +} + +func (t *tblgen) GeneratedDeps() android.Paths { return t.generatedHeaders } |