summaryrefslogtreecommitdiff
path: root/build_kzip.bash
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-08-19 21:45:48 +0000
committer Spandan Das <spandandas@google.com> 2024-09-11 21:16:24 +0000
commit1028d5a53f003d497d9e850780f7d0c28729b343 (patch)
treec7db575e74cef9fe0588226fcf9edd93912e01d9 /build_kzip.bash
parentf2c204c655254a16761018c782603183c2b7d211 (diff)
Create .kzip files for kotlin translation units
This CL creates the build rules to invoke the standalone kotlin extractor and create .kzip files for each kotlin translation unit. These will be indexed by the internal g3 kotlin indexers Implementation details - Create a `kotlinKytheExtract` static rule. Its inputs will be source .kt/.srcjar files and other verbatim args passed to kotlinc. The extrator will serialize this information into a .kzip file. The .kzip file should contain the necessary information to "replay" the compilation - Create a xref_kotlin phony rule to build all .kzip files corresponding to kotlin translation units. This implementation has one limitation. Since the kotlin indexers "replay" the compilation using its own version of kotlinc-jvm, there might be indexing issues caused by kotlinc version skew between android builds and indexing builds. `-kotlin-home` can likely solve that, but this CL defers that for now. Bug: 265428637 Test: Built the phony `xref_kotlin`, and ran the indexer locally using go/kythe-git-local-run#indexing-to-local-xrefs-server Change-Id: Ifb370f2df8aa46f71df3fe1ae7d7aa5da773cc8b
Diffstat (limited to 'build_kzip.bash')
0 files changed, 0 insertions, 0 deletions