Introduce -Xoutput-imports mode of JVM compiler
In this mode, instead of analyzing files and generating bytecode for them, compiler just saves imports of each file in JSON map of form '<path to file> -> [<import1>, <import2>, ...]' It is needed for some external tools, notably for Google3 toolchain.
This commit is contained in:
+1
@@ -32,6 +32,7 @@ where advanced options include:
|
||||
-Xno-optimize Disable optimizations
|
||||
-Xno-param-assertions Don't generate not-null assertions on parameters of methods accessible from Java
|
||||
-Xno-receiver-assertions Don't generate not-null assertion for extension receiver arguments of platform types
|
||||
-Xoutput-imports=<path> Output imports from all compiled files to the specified file in JSON format
|
||||
-Xscript-resolver-environment=<key=value[,]>
|
||||
Script resolver environment in key-value pairs (the value could be quoted and escaped)
|
||||
-Xsingle-module Combine modules for source files and binary dependencies into a single module
|
||||
|
||||
Reference in New Issue
Block a user