X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FDriverPipeline.hs;h=6e32929665633a0e12ed59f24e76fb1efe07162c;hb=02edb7607692a5168b6636a100a27d2e4063b915;hp=2668c64edff0ea7ecf36802f59d7df2489f0982e;hpb=3738f22746c5619e00b4a26b38d6d2a98009b188;p=ghc-hetmet.git diff --git a/ghc/compiler/main/DriverPipeline.hs b/ghc/compiler/main/DriverPipeline.hs index 2668c64..6e32929 100644 --- a/ghc/compiler/main/DriverPipeline.hs +++ b/ghc/compiler/main/DriverPipeline.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: DriverPipeline.hs,v 1.67 2001/05/08 11:07:30 simonmar Exp $ +-- $Id: DriverPipeline.hs,v 1.68 2001/05/09 09:38:18 simonmar Exp $ -- -- GHC Driver -- @@ -152,6 +152,7 @@ genPipeline todo stop_flag persistent_output lang filename writeIORef v_Object_suf (Just "ilx") #endif osuf <- readIORef v_Object_suf + hcsuf <- readIORef v_HC_suf let ----------- ----- ---- --- -- -- - - - @@ -209,10 +210,10 @@ genPipeline todo stop_flag persistent_output lang filename else do let - ----------- ----- ---- --- -- -- - - - - myPhaseInputExt Ln = case osuf of Nothing -> phaseInputExt Ln - Just s -> s - myPhaseInputExt other = phaseInputExt other + -- .o and .hc suffixes can be overriden by command-line options: + myPhaseInputExt Ln | Just s <- osuf = s + myPhaseInputExt HCc | Just s <- hcsuf = s + myPhaseInputExt other = phaseInputExt other annotatePipeline :: [Phase] -- raw pipeline