developer option to exclude sources

to compile stdlib
This commit is contained in:
Stepan Koltsov
2012-01-06 21:22:55 +04:00
parent 430b973458
commit 09d0780fe6
3 changed files with 8 additions and 3 deletions
@@ -25,6 +25,8 @@ public class KotlinCompiler {
public String module;
@Argument(value = "includeRuntime", description = "include Kotlin runtime in to resulting jar")
public boolean includeRuntime;
@Argument(value = "excludeStdlib", description = "do not load stdlib (to compile stdlib itself)")
public boolean excludeStdlib;
}
public static void main(String[] args) {
@@ -59,7 +61,7 @@ public class KotlinCompiler {
return;
}
else {
if (!environment.compileBunchOfSources(arguments.src, arguments.jar, arguments.outputDir, arguments.includeRuntime)) {
if (!environment.compileBunchOfSources(arguments.src, arguments.jar, arguments.outputDir, arguments.includeRuntime, !arguments.excludeStdlib)) {
System.exit(1);
return;
}