diff options
author | Scott Lobdell <slobdell@google.com> | 2021-03-11 19:08:45 +0000 |
---|---|---|
committer | Scott Lobdell <slobdell@google.com> | 2021-03-16 00:44:22 +0000 |
commit | 85534c36f81cf1557ddaa01605199bfc3a9fd76c (patch) | |
tree | f9b65ea011ac58731bc866a621f526ea8fa7e39f /java/builder.go | |
parent | 5989878a55d2d34a1a8e5e16bb37349c4949758b (diff) | |
parent | edc1fc38c73698499b37c40435b25ef2a5ade887 (diff) |
Merge SP1A.210311.001
Change-Id: I28e9aad9ed4dd91092fd24efb136f0aac7bdb68e
Diffstat (limited to 'java/builder.go')
-rw-r--r-- | java/builder.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/builder.go b/java/builder.go index 22a891ae1..33206ceeb 100644 --- a/java/builder.go +++ b/java/builder.go @@ -80,6 +80,8 @@ var ( func(ctx android.PackageVarContext) string { return ctx.Config().XrefCorpusName() }) _ = pctx.VariableFunc("kytheCuEncoding", func(ctx android.PackageVarContext) string { return ctx.Config().XrefCuEncoding() }) + _ = pctx.VariableFunc("kytheCuJavaSourceMax", + func(ctx android.PackageVarContext) string { return ctx.Config().XrefCuJavaSourceMax() }) _ = pctx.SourcePathVariable("kytheVnames", "build/soong/vnames.json") // Run it with -add-opens=java.base/java.nio=ALL-UNNAMED to avoid JDK9's warning about // "Illegal reflective access by com.google.protobuf.Utf8$UnsafeProcessor ... @@ -93,6 +95,7 @@ var ( `KYTHE_CORPUS=${kytheCorpus} ` + `KYTHE_VNAMES=${kytheVnames} ` + `KYTHE_KZIP_ENCODING=${kytheCuEncoding} ` + + `KYTHE_JAVA_SOURCE_BATCH_SIZE=${kytheCuJavaSourceMax} ` + `${config.SoongJavacWrapper} ${config.JavaCmd} ` + `--add-opens=java.base/java.nio=ALL-UNNAMED ` + `-jar ${config.JavaKytheExtractorJar} ` + |