Add temporary compiler option to suppress incompatibility errors
To compile Kotlin against current IDEA libraries until they are migrated to 1.1
This commit is contained in:
+3
@@ -70,6 +70,9 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
|
|||||||
@Argument(value = "Xallow-kotlin-package", description = "Allow compiling code in package 'kotlin'")
|
@Argument(value = "Xallow-kotlin-package", description = "Allow compiling code in package 'kotlin'")
|
||||||
public boolean allowKotlinPackage;
|
public boolean allowKotlinPackage;
|
||||||
|
|
||||||
|
@Argument(value = "Xskip-metadata-version-check", description = "Try loading binary incompatible classes, may cause crashes")
|
||||||
|
public boolean skipMetadataVersionCheck;
|
||||||
|
|
||||||
// Paths to output directories for friend modules.
|
// Paths to output directories for friend modules.
|
||||||
public String[] friendPaths;
|
public String[] friendPaths;
|
||||||
|
|
||||||
|
|||||||
@@ -72,9 +72,10 @@ class Usage {
|
|||||||
sb.append(" ");
|
sb.append(" ");
|
||||||
sb.append(description.value());
|
sb.append(description.value());
|
||||||
}
|
}
|
||||||
while (sb.length() < OPTION_NAME_PADDING_WIDTH) {
|
while (sb.length() < OPTION_NAME_PADDING_WIDTH - 1) {
|
||||||
sb.append(" ");
|
sb.append(" ");
|
||||||
}
|
}
|
||||||
|
sb.append(" ");
|
||||||
sb.append(argument.description());
|
sb.append(argument.description());
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -6,6 +6,7 @@ where advanced options include:
|
|||||||
-Xreport-perf Report detailed performance statistics
|
-Xreport-perf Report detailed performance statistics
|
||||||
-Xmultifile-facades-open Compile multifile facade classes as open
|
-Xmultifile-facades-open Compile multifile facade classes as open
|
||||||
-Xallow-kotlin-package Allow compiling code in package 'kotlin'
|
-Xallow-kotlin-package Allow compiling code in package 'kotlin'
|
||||||
|
-Xskip-metadata-version-check Try loading binary incompatible classes, may cause crashes
|
||||||
-Xno-inline Disable method inlining
|
-Xno-inline Disable method inlining
|
||||||
-Xrepeat <count> Repeat compilation (for performance analysis)
|
-Xrepeat <count> Repeat compilation (for performance analysis)
|
||||||
-Xplugin <path> Load plugins from the given classpath
|
-Xplugin <path> Load plugins from the given classpath
|
||||||
|
|||||||
Reference in New Issue
Block a user