mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 02:55:23 +02:00
Add scala library when compiling compiler interface sources
This commit is contained in:
committed by
Mark Harrah
parent
f39af0bab3
commit
737b1b09bd
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user