main() added to quickly compile runtime for tests
This commit is contained in:
@@ -18,6 +18,7 @@ package org.jetbrains.jet.codegen.forTestCompile;
|
||||
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.JetTestUtils;
|
||||
import org.jetbrains.jet.cli.common.ExitCode;
|
||||
import org.jetbrains.jet.cli.jvm.K2JVMCompiler;
|
||||
import org.junit.Assert;
|
||||
@@ -115,4 +116,9 @@ public class ForTestCompileRuntime {
|
||||
return ForTestCompileSomething.ACTUALLY_COMPILE ? Runtime.runtime.getJarFile() : new File("dist/kotlinc/lib/kotlin-runtime.jar");
|
||||
}
|
||||
|
||||
// This method is very convenient when you have trouble compiling runtime in tests
|
||||
public static void main(String[] args) throws IOException {
|
||||
compileStdlib(JetTestUtils.tmpDir("runtime"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user