-----------------------------------------------------------------------------
--- $Id: DriverPipeline.hs,v 1.66 2001/05/08 10:58:48 simonmar Exp $
+-- $Id: DriverPipeline.hs,v 1.68 2001/05/09 09:38:18 simonmar Exp $
--
-- GHC Driver
--
writeIORef v_Object_suf (Just "ilx")
#endif
osuf <- readIORef v_Object_suf
+ hcsuf <- readIORef v_HC_suf
let
----------- ----- ---- --- -- -- - - -
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
++ " is incompatible with source file `" ++ filename ++ "'"))
else do
- print (show pipeline ++ show annotated_pipeline ++ show stop_phase)
-
return (
takeWhile (phase_ne stop_phase ) $
dropWhile (phase_ne start_phase) $