summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2018-07-26 12:55:08 -0700
committer Steven Moreland <smoreland@google.com> 2018-07-26 12:55:08 -0700
commit667f688f361ed732d4209cc38e73335425cd2e2c (patch)
tree17331f85455477bf7a079756550d90458eee92a0 /java/java.go
parent20e998b32c6e8ab7285da2d502374714640407df (diff)
Build Java aidl w/ '-b'.
As it turns out, AIDL originally passed and returned success when it was asked to compile an unstructured parcelable even though no output files were created. The build system currently can't handle this because it is expecting outputs here, so I am adding this argument here which will cause the compiler to exit and error earlier as expected. Notice also that the make implementation of the AIDL build system also passes in this argument. Test: m framework (which invokes this many times) Bug: N/A Change-Id: Ia9b5280dc3593756784035a523399545c9947d80
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index a2ba7e6f9..38c89f4c8 100644
--- a/java/java.go
+++ b/java/java.go
@@ -631,7 +631,8 @@ func (j *Module) aidlFlags(ctx android.ModuleContext, aidlPreprocess android.Opt
aidlIncludes = append(aidlIncludes,
android.PathsForSource(ctx, j.deviceProperties.Aidl.Include_dirs)...)
- var flags []string
+ flags := []string{"-b"}
+
if aidlPreprocess.Valid() {
flags = append(flags, "-p"+aidlPreprocess.String())
} else {