diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -24,9 +24,16 @@ kotlin-proxy/ │ ├── fallback.txt # other cached KGP versions (definition lookup only) │ └── .stamp # versions the lists were generated for (drift detection) ├── dist/kotlin-proxy-compiler-stubs.jar # the artifact +├── native-image/ # how to build the OFA Kotlin compiler native image +├── tools/collect_metadata.py # collects native image reachability metadata from a compile +├── tools/ic_check.sh # checks incremental compilation in the OFA build └── test_project/ # AGP test app that consumes the jar ``` +The stub runs a GraalVM native image of the Kotlin compiler, which +`kotlin.proxy.nativeImage` points to. `native-image/README.md` describes how to +build that image with the compiler plugins OFA needs. + ## Building `dist/kotlin-proxy-compiler-stubs.jar` ```bash @@ -330,7 +337,7 @@ via `org.gradle.jvmargs` or the daemon's own args): | property | default | meaning | |---|---|---| | `kotlin.proxy.pgoProfileDir` | unset | for an image built with `--pgo-instrument`: each compile writes `<dir>/<uuid>.iprof`. Merge them with `native-image-utils merge-pgo-profiles --input-dir=<dir> --output-file=<file>`. | -| `kotlin.proxy.nativeImage` | unset | native-image distribution root (it holds `bin/kotlinc-native-image.sh`), for example `~/source/kotlin/prepare/compiler-native-image/build/dist`. If unset, the stub downloads the JetBrains release into `<user.dir>/native-image/`. | +| `kotlin.proxy.nativeImage` | required | native-image distribution root (it holds `bin/kotlinc-native-image.sh`), for example `~/source/kotlin/prepare/compiler-native-image/build/dist`. Compilation fails if it is not set. See `native-image/README.md`. | The marker file is what proves the stub ran **inside the out-of-process daemon** (its thread name is `RMI TCP Connection(N)`), regardless of the |
