handle information only options that disable a full compilation

This commit is contained in:
Mark Harrah 2011-04-01 21:04:08 -04:00
parent a79d06ab1f
commit 801c0567fd
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ class CompilerInterface
}
trait Compat27 { val runsBefore: List[String] = Nil }
}
if(command.shouldStopWithInfo)
{
reporter.info(null, command.getInfoMessage(compiler), true)
throw new InterfaceCompileFailed(args, Array(), "Compiler option supplied that disabled actual compilation.")
}
if(noErrors)
{
val run = new compiler.Run