上游 · Kotlin compiler options · Common
-help (-h)
Display usage information and exit. Only standard options are shown. To show advanced options, use -X .
-kotlin-home path
Specify a custom path to the Kotlin compiler used for the discovery of runtime libraries.
-language-version version
This option sets the supported syntax and semantics according to the specified language version. For example, using Kotlin compiler version 2.4.0 with -language-version=2.2 lets you use only the language features and standard library APIs from version 2.2 or earlier.…