From 801c0567fd2cee7bdd0134ee79e7a8c0015190c2 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Fri, 1 Apr 2011 21:04:08 -0400 Subject: [PATCH] handle information only options that disable a full compilation --- compile/interface/CompilerInterface.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compile/interface/CompilerInterface.scala b/compile/interface/CompilerInterface.scala index da3d33252..5a7e2ed25 100644 --- a/compile/interface/CompilerInterface.scala +++ b/compile/interface/CompilerInterface.scala @@ -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