summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-09-13 21:24:33 +0000
committer Spandan Das <spandandas@google.com> 2024-09-13 22:12:45 +0000
commit67136e14f3f29e7067476173674987bd38eb8d3f (patch)
tree694ba301da01175204290f5ec0e56be6fd3f2935
parent6556d043bdd5ca2009a1aa2daebb400309a6f757 (diff)
Pass the common sources rsp file as `--common_srcs` to extractor
This additional metadata allows the indexer to differentiate between platform specific and platform agnostic kotlin code. Bug: 3266381 Test: ran the indexer on `kotlinx_serialization_core` java_library Change-Id: I860552808198cafa95fe0d5b6faa725b985e24d0
-rw-r--r--java/kotlin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/kotlin.go b/java/kotlin.go
index 79781a06d..3573f1eae 100644
--- a/java/kotlin.go
+++ b/java/kotlin.go
@@ -163,7 +163,7 @@ func (j *Module) kotlinCompile(ctx android.ModuleContext, outputFile, headerOutp
"srcJarDir": android.PathForModuleOut(ctx, "kotlinc", "srcJars.xref").String(),
}
if commonSrcsList.Valid() {
- args["commonSrcFilesList"] = "--srcs @" + commonSrcsList.String()
+ args["commonSrcFilesList"] = "--common_srcs @" + commonSrcsList.String()
}
ctx.Build(pctx, android.BuildParams{
Rule: kotlinKytheExtract,