From 737b1b09bd3a2ad1398d60080cd2035ef098cc86 Mon Sep 17 00:00:00 2001 From: Peter Vlugter Date: Fri, 25 May 2012 22:00:11 +1200 Subject: [PATCH] Add scala library when compiling compiler interface sources --- compile/AnalyzingCompiler.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile/AnalyzingCompiler.scala b/compile/AnalyzingCompiler.scala index 26b4475cf..8120c7fae 100644 --- a/compile/AnalyzingCompiler.scala +++ b/compile/AnalyzingCompiler.scala @@ -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) }