Only generate kythe xrefs on the primary module
Currently the kythe build is hitting the 6 hour timeout, but we're generating kythe files for all variants. Generating them only for the primary variant should drastically cut its runtime. Bug: 345440993 Test: Presubmits Change-Id: I3846b25c7f0bc22153e4f0a0cb81c5015854dd70
This commit is contained in:
@@ -1852,7 +1852,7 @@ func (j *Module) compileJavaClasses(ctx android.ModuleContext, jarName string, i
|
||||
classes := android.PathForModuleOut(ctx, "javac", jarName).OutputPath
|
||||
TransformJavaToClasses(ctx, classes, idx, srcFiles, srcJars, annoSrcJar, flags, extraJarDeps)
|
||||
|
||||
if ctx.Config().EmitXrefRules() {
|
||||
if ctx.Config().EmitXrefRules() && ctx.Module() == ctx.PrimaryModule() {
|
||||
extractionFile := android.PathForModuleOut(ctx, kzipName)
|
||||
emitXrefRule(ctx, extractionFile, idx, srcFiles, srcJars, flags, extraJarDeps)
|
||||
j.kytheFiles = append(j.kytheFiles, extractionFile)
|
||||
|
Reference in New Issue
Block a user