mirror of https://github.com/sbt/sbt.git
properly handle arguments to compiler when classpath is empty
This commit is contained in:
parent
6cebff588b
commit
520f74d114
|
|
@ -18,7 +18,7 @@ final class CompilerArguments(scalaInstance: ScalaInstance, cp: ClasspathOptions
|
|||
{
|
||||
checkScalaHomeUnset()
|
||||
val cpWithCompiler = finishClasspath(classpath)
|
||||
val classpathOption = Seq("-cp", absString(cpWithCompiler) )
|
||||
val classpathOption = if(cpWithCompiler.isEmpty) Nil else Seq("-cp", absString(cpWithCompiler) )
|
||||
val outputOption = Seq("-d", outputDirectory.getAbsolutePath)
|
||||
options ++ outputOption ++ bootClasspathOption ++ classpathOption ++ abs(sources)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue