Don't attach library sources when compiling stdlib

This commit is contained in:
Maxim Shafirov
2011-12-30 18:25:05 +04:00
parent 18d73e8dc2
commit c2dc189bec
@@ -233,7 +233,10 @@ public class CompileEnvironment {
public ClassFileFactory compileModule(IModuleBuilder moduleBuilder, String directory) {
CompileSession moduleCompileSession = new CompileSession(myEnvironment);
moduleCompileSession.addStdLibSources(false);
if (!"stdlib".equals(moduleBuilder.getModuleName())) {
moduleCompileSession.addStdLibSources(false);
}
for (String sourceFile : moduleBuilder.getSourceFiles()) {
File source = new File(sourceFile);
if (!source.isAbsolute()) {