From 1a4238bccc8be8a71f8ebec15f25d8edf8d084ad Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 9 Jan 2003 11:39:20 +0000 Subject: [PATCH] [project @ 2003-01-09 11:39:20 by simonmar] Add missing -pgmL switch. MERGE TO STABLE --- ghc/compiler/main/DriverFlags.hs | 4 +++- ghc/compiler/main/SysTools.lhs | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ghc/compiler/main/DriverFlags.hs b/ghc/compiler/main/DriverFlags.hs index 16c15c6..4c110c0 100644 --- a/ghc/compiler/main/DriverFlags.hs +++ b/ghc/compiler/main/DriverFlags.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: DriverFlags.hs,v 1.109 2003/01/08 13:03:25 simonmar Exp $ +-- $Id: DriverFlags.hs,v 1.110 2003/01/09 11:39:20 simonmar Exp $ -- -- Driver flags -- @@ -277,6 +277,8 @@ static_flags = , ( "syslib" , HasArg (addPackage) ) -- for compatibility w/ old vsns ------- Specific phases -------------------------------------------- + , ( "pgmL" , HasArg setPgmL ) + , ( "pgmP" , HasArg setPgmP ) , ( "pgmP" , HasArg setPgmP ) , ( "pgmF" , HasArg setPgmF ) , ( "pgmc" , HasArg setPgmc ) diff --git a/ghc/compiler/main/SysTools.lhs b/ghc/compiler/main/SysTools.lhs index d217469..a4f96f7 100644 --- a/ghc/compiler/main/SysTools.lhs +++ b/ghc/compiler/main/SysTools.lhs @@ -11,7 +11,8 @@ module SysTools ( -- Initialisation initSysTools, - setPgmP, -- String -> IO () + setPgmL, -- String -> IO () + setPgmP, setPgmF, setPgmc, setPgmm, @@ -439,6 +440,7 @@ like is used to override a particular program with a new one \begin{code} +setPgmL = writeIORef v_Pgm_L setPgmP = writeIORef v_Pgm_P setPgmF = writeIORef v_Pgm_F setPgmc = writeIORef v_Pgm_c @@ -897,4 +899,4 @@ foreign import ccall "rawSystemCmd" unsafe primRawSystem :: CString -> IO Int #endif #endif -\end{code} \ No newline at end of file +\end{code} -- 1.7.10.4