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:
Alexander Udalov
2016-01-22 19:48:42 +03:00
parent f688b1b786
commit 714df7b433
3 changed files with 6 additions and 1 deletions
@@ -70,6 +70,9 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
@Argument(value = "Xallow-kotlin-package", description = "Allow compiling code in package 'kotlin'")
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.
public String[] friendPaths;
@@ -72,9 +72,10 @@ class Usage {
sb.append(" ");
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(argument.description());
return sb.toString();
}
+1
View File
@@ -6,6 +6,7 @@ where advanced options include:
-Xreport-perf Report detailed performance statistics
-Xmultifile-facades-open Compile multifile facade classes as open
-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
-Xrepeat <count> Repeat compilation (for performance analysis)
-Xplugin <path> Load plugins from the given classpath