From: simonmar Date: Tue, 27 Mar 2001 10:33:24 +0000 (+0000) Subject: [project @ 2001-03-27 10:33:24 by simonmar] X-Git-Tag: Approximately_9120_patches~2292 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e067f3ea2c9d5667b66efad7227bf4dc4e92571c;p=ghc-hetmet.git [project @ 2001-03-27 10:33:24 by simonmar] complain if the -B flag is missing. --- diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs index 0475096..88ddba7 100644 --- a/ghc/compiler/main/Main.hs +++ b/ghc/compiler/main/Main.hs @@ -1,6 +1,6 @@ {-# OPTIONS -fno-warn-incomplete-patterns #-} ----------------------------------------------------------------------------- --- $Id: Main.hs,v 1.60 2001/03/23 12:11:26 simonmar Exp $ +-- $Id: Main.hs,v 1.61 2001/03/27 10:33:24 simonmar Exp $ -- -- GHC Driver program -- @@ -307,7 +307,7 @@ setTopDir :: [String] -> IO [String] setTopDir args = do let (minusbs, others) = partition (prefixMatch "-B") args (case minusbs of - [] -> writeIORef v_TopDir clibdir + [] -> throwDyn (OtherError ("missing -B option")) some -> writeIORef v_TopDir (drop 2 (last some))) return others