File tree Expand file tree Collapse file tree 6 files changed +7
-5
lines changed
cli-common/src/org/jetbrains/kotlin/cli/common/arguments
src/org/jetbrains/kotlin/cli Expand file tree Collapse file tree 6 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ public abstract class CommonCompilerArguments implements Serializable {
63
63
@ ValueDescription ("<count>" )
64
64
public String repeat ;
65
65
66
+ @ Argument (value = "Xskip-metadata-version-check" , description = "Load classes with bad metadata version anyway (incl. pre-release classes)" )
67
+ public boolean skipMetadataVersionCheck ;
68
+
66
69
@ Argument (value = "Xallow-kotlin-package" , description = "Allow compiling code in package 'kotlin'" )
67
70
public boolean allowKotlinPackage ;
68
71
Original file line number Diff line number Diff line change @@ -94,9 +94,6 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
94
94
@ Argument (value = "Xmultifile-parts-inherit" , description = "Compile multifile classes as a hierarchy of parts and facade" )
95
95
public boolean inheritMultifileParts ;
96
96
97
- @ Argument (value = "Xskip-metadata-version-check" , description = "Load classes with bad metadata version anyway (incl. pre-release classes)" )
98
- public boolean skipMetadataVersionCheck ;
99
-
100
97
@ Argument (value = "Xskip-runtime-version-check" , description = "Allow Kotlin runtime libraries of incompatible versions in the classpath" )
101
98
public boolean skipRuntimeVersionCheck ;
102
99
Original file line number Diff line number Diff line change @@ -235,6 +235,8 @@ private static void setupCommonArgumentsAndServices(
235
235
configuration .put (CLIConfigurationKeys .COMPILER_JAR_LOCATOR , locator );
236
236
}
237
237
238
+ configuration .put (CommonConfigurationKeys .SKIP_METADATA_VERSION_CHECK , arguments .skipMetadataVersionCheck );
239
+
238
240
setupLanguageVersionSettings (configuration , arguments );
239
241
}
240
242
Original file line number Diff line number Diff line change @@ -312,7 +312,6 @@ class K2JVMCompiler : CLICompiler<K2JVMCompilerArguments>() {
312
312
configuration.put(JVMConfigurationKeys .DISABLE_OPTIMIZATION , arguments.noOptimize)
313
313
configuration.put(JVMConfigurationKeys .INHERIT_MULTIFILE_PARTS , arguments.inheritMultifileParts)
314
314
configuration.put(JVMConfigurationKeys .SKIP_RUNTIME_VERSION_CHECK , arguments.skipRuntimeVersionCheck)
315
- configuration.put(CommonConfigurationKeys .SKIP_METADATA_VERSION_CHECK , arguments.skipMetadataVersionCheck)
316
315
configuration.put(CLIConfigurationKeys .ALLOW_KOTLIN_PACKAGE , arguments.allowKotlinPackage)
317
316
configuration.put(CLIConfigurationKeys .REPORT_PERF , arguments.reportPerf)
318
317
configuration.put(JVMConfigurationKeys .USE_SINGLE_MODULE , arguments.singleModule)
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ Usage: kotlinc-js <options> <source files>
2
2
where advanced options include:
3
3
-Xno-inline Disable method inlining
4
4
-Xrepeat <count> Repeat compilation (for performance analysis)
5
+ -Xskip-metadata-version-check Load classes with bad metadata version anyway (incl. pre-release classes)
5
6
-Xallow-kotlin-package Allow compiling code in package 'kotlin'
6
7
-Xplugin <path> Load plugins from the given classpath
7
8
-Xmulti-platform Enable experimental language support for multi-platform projects
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ where advanced options include:
5
5
-Xno-optimize Disable optimizations
6
6
-Xreport-perf Report detailed performance statistics
7
7
-Xmultifile-parts-inherit Compile multifile classes as a hierarchy of parts and facade
8
- -Xskip-metadata-version-check Load classes with bad metadata version anyway (incl. pre-release classes)
9
8
-Xskip-runtime-version-check Allow Kotlin runtime libraries of incompatible versions in the classpath
10
9
-Xdump-declarations-to <path> Path to JSON file to dump Java to Kotlin declaration mappings
11
10
-Xsingle-module Combine modules for source files and binary dependencies into a single module
@@ -14,6 +13,7 @@ where advanced options include:
14
13
Load definitions of built-in declarations from module dependencies, instead of from the compiler
15
14
-Xno-inline Disable method inlining
16
15
-Xrepeat <count> Repeat compilation (for performance analysis)
16
+ -Xskip-metadata-version-check Load classes with bad metadata version anyway (incl. pre-release classes)
17
17
-Xallow-kotlin-package Allow compiling code in package 'kotlin'
18
18
-Xplugin <path> Load plugins from the given classpath
19
19
-Xmulti-platform Enable experimental language support for multi-platform projects
You can’t perform that action at this time.
0 commit comments