Permalink
Browse files

Don't automatically add stdlib when compiling from the IDE

  • Loading branch information...
1 parent b5008eb commit c2dcdbe29f38b30910d6cd8a0be113296e8fd112 @abreslav abreslav committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java
@@ -268,7 +268,7 @@ private static int execInProcess(File kotlinHome, VirtualFile outputDir, File sc
Class<?> kompiler = Class.forName(compilerClassName, true, loader);
Method exec = kompiler.getDeclaredMethod("exec", PrintStream.class, String[].class);
- String[] arguments = { "-module", scriptFile.getAbsolutePath(), "-output", path(outputDir), "-tags", "-verbose", "-version" };
+ String[] arguments = { "-module", scriptFile.getAbsolutePath(), "-output", path(outputDir), "-tags", "-verbose", "-version", "-mode", "stdlib" };
context.addMessage(INFORMATION, "Using kotlinHome=" + kotlinHome, "", -1, -1);
context.addMessage(INFORMATION, "Invoking in-process compiler " + compilerClassName + " with arguments " + Arrays.asList(arguments), "", -1, -1);

0 comments on commit c2dcdbe

Please sign in to comment.