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
+2
View File
@@ -414,6 +414,7 @@
<arg value="${basedir}/libraries/stdlib/src"/>
<arg value="-output"/>
<arg value="${output}/classes/stdlib"/>
<arg value="-noStdlib"/>
<arg value="-mode"/>
<arg value="stdlib"/>
<arg value="-classpath"/>
@@ -446,6 +447,7 @@
<arg value="${basedir}/compiler/frontend/src"/>
<arg value="-output"/>
<arg value="${output}/classes/lang"/>
<arg value="-noStdlib"/>
<arg value="-mode"/>
<arg value="builtins"/>
</java>
@@ -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) {
@@ -270,6 +270,7 @@ public class JetCompiler implements TranslatingCompiler {
"-module", scriptFile.getAbsolutePath(),
"-output", path(outputDir),
"-tags", "-verbose", "-version",
"-noStdlib", "-noJdkAnnotations", "-noJdk",
"-mode", "idea"};
}