5eea3b6569
In this mode, javac AST and Symbol files are used during Kotlin compilation instead of PSI / binary stuff. Later, they are reused for Java file compilation. javac in this mode is integrated into kotlinc.
32 lines
2.5 KiB
Plaintext
Vendored
32 lines
2.5 KiB
Plaintext
Vendored
Usage: kotlinc-jvm <options> <source files>
|
|
where advanced options include:
|
|
-Xno-call-assertions Don't generate not-null assertion after each invocation of method returning not-null
|
|
-Xno-param-assertions Don't generate not-null assertions on parameters of methods accessible from Java
|
|
-Xno-optimize Disable optimizations
|
|
-Xreport-perf Report detailed performance statistics
|
|
-Xmultifile-parts-inherit Compile multifile classes as a hierarchy of parts and facade
|
|
-Xskip-runtime-version-check Allow Kotlin runtime libraries of incompatible versions in the classpath
|
|
-Xuse-old-class-files-reading Use old class files reading implementation (may slow down the build and should be used in case of problems with the new implementation)
|
|
-Xdump-declarations-to=<path> Path to JSON file to dump Java to Kotlin declaration mappings
|
|
-Xsingle-module Combine modules for source files and binary dependencies into a single module
|
|
-Xadd-compiler-builtins Add definitions of built-in declarations to the compilation classpath (useful with -no-stdlib)
|
|
-Xload-builtins-from-dependencies
|
|
Load definitions of built-in declarations from module dependencies, instead of from the compiler
|
|
-Xscript-resolver-environment=<key=value[,]>
|
|
Script resolver environment in key-value pairs (the value could be quoted and escaped)
|
|
-Xuse-javac Use javac for Java source and class files analysis
|
|
-Xjavac-arguments=<option[,]> Java compiler arguments
|
|
-Xno-inline Disable method inlining
|
|
-Xrepeat=<count> Repeat compilation (for performance analysis)
|
|
-Xskip-metadata-version-check Load classes with bad metadata version anyway (incl. pre-release classes)
|
|
-Xallow-kotlin-package Allow compiling code in package 'kotlin'
|
|
-Xreport-output-files Report source to output files mapping
|
|
-Xplugin=<path> Load plugins from the given classpath
|
|
-Xmulti-platform Enable experimental language support for multi-platform projects
|
|
-Xno-check-impl Do not check presence of 'impl' modifier in multi-platform projects
|
|
-Xintellij-plugin-root=<path> Path to the kotlin-compiler.jar or directory where IntelliJ configuration files can be found
|
|
-Xcoroutines={enable|warn|error}
|
|
Enable coroutines or report warnings or errors on declarations and use sites of 'suspend' modifier
|
|
|
|
Advanced options are non-standard and may be changed or removed without any notice.
|
|
OK |