Skip to content

Commit

Permalink
handle information only options that disable a full compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
harrah committed Apr 2, 2011
1 parent a79d06a commit 801c056
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compile/interface/CompilerInterface.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 801c056

Please sign in to comment.