Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67136e14 authored by Spandan Das's avatar Spandan Das
Browse files

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
parent 6556d043
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,