Added -noStdlib/noJdk/noJdkAnnotations command line arguments where CLI is invoked.

This commit is contained in:
Evgeny Gerashchenko
2012-07-03 23:15:10 +04:00
parent 97e0ee4a29
commit 60ecd1d394
4 changed files with 5 additions and 1 deletions
@@ -39,7 +39,7 @@ public class ForTestCompileBuiltins {
@Override
protected void doCompile(@NotNull File classesDir) throws Exception {
ExitCode exitCode = new K2JVMCompiler().exec(
System.err, "-output", classesDir.getPath(), "-src", "./compiler/frontend/src", "-mode", "builtins");
System.err, "-output", classesDir.getPath(), "-src", "./compiler/frontend/src", "-noStdlib", "-mode", "builtins");
if (exitCode != ExitCode.OK) {
throw new IllegalStateException("builtins compilation failed: " + exitCode);
}
@@ -61,6 +61,7 @@ public class ForTestCompileRuntime {
ExitCode exitCode = new K2JVMCompiler().exec(System.err,
"-output", destdir.getPath(),
"-src", "./libraries/stdlib/src",
"-noStdlib",
"-mode", "stdlib",
"-classpath", "out/production/runtime");
if (exitCode != ExitCode.OK) {