-----------------------------------------------------------------------------
--- $Id: DriverPhases.hs,v 1.14 2001/10/29 11:31:51 simonmar Exp $
+-- $Id: DriverPhases.hs,v 1.16 2002/03/04 17:01:30 simonmar Exp $
--
-- GHC Driver
--
--- (c) Simon Marlow 2000
+-- (c) The University of Glasgow 2002
--
-----------------------------------------------------------------------------
haskellish_file, haskellish_suffix,
haskellish_src_file, haskellish_src_suffix,
+ hsbootish_file, hsbootish_suffix,
objish_file, objish_suffix,
cish_file, cish_suffix
) where
| Unlit
| Cpp
| HsPp
- | Hsc -- ToDo: HscTargetLang
+ | Hsc
+ | HsBoot
| Cc
| HCc -- Haskellised C (as opposed to vanilla C) compilation
| Mangle -- assembly mangling, now done by a separate script.
startPhase "hs" = Cpp
startPhase "hscpp" = HsPp
startPhase "hspp" = Hsc
+startPhase "hs-boot" = HsBoot
startPhase "hc" = HCc
startPhase "c" = Cc
startPhase "cpp" = Cc
phaseInputExt SplitAs = "split_s" -- not really generated
phaseInputExt Ln = "o"
phaseInputExt MkDependHS = "dep"
+phaseInputExt HsBoot = "hs-boot"
#ifdef ILX
phaseInputExt Ilx2Il = "ilx"
phaseInputExt Ilasm = "il"
haskellish_suffix = (`elem` [ "hs", "hspp", "hscpp", "lhs", "hc", "raw_s" ])
haskellish_src_suffix = (`elem` [ "hs", "hspp", "hscpp", "lhs" ])
cish_suffix = (`elem` [ "c", "cpp", "C", "cc", "cxx", "s", "S" ])
+hsbootish_suffix = (`elem` [ "hs-boot" ])
#if mingw32_TARGET_OS || cygwin32_TARGET_OS
objish_suffix = (`elem` [ "o", "O", "obj", "OBJ" ])
haskellish_src_file = haskellish_src_suffix . getFileSuffix
cish_file = cish_suffix . getFileSuffix
objish_file = objish_suffix . getFileSuffix
+hsbootish_file = hsbootish_suffix . getFileSuffix