Add scala library when compiling compiler interface sources

This commit is contained in:
Peter Vlugter 2012-05-25 22:00:11 +12:00 committed by Mark Harrah
parent f39af0bab3
commit 737b1b09bd
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ object AnalyzingCompiler
val start = System.currentTimeMillis
try
{
compiler(sourceFiles.toSeq, xsbtiJars.toSeq ++ sourceJars, outputDirectory, "-nowarn" :: Nil)
compiler(sourceFiles.toSeq, compiler.scalaInstance.libraryJar +: (xsbtiJars.toSeq ++ sourceJars), outputDirectory, "-nowarn" :: Nil)
log.info(" Compilation completed in " + (System.currentTimeMillis - start) / 1000.0 + " s")
}
catch { case e: xsbti.CompileFailed => throw new CompileFailed(e.arguments, "Error compiling sbt component '" + id + "'", e.problems) }