X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FDriverFlags.hs;h=c503066451799cb54babd4d98ee738edbf8efc0c;hb=9fdd90b00f159463165f739c44943e53fb553c19;hp=64f6df550a6d0a95109809577498693f55d06786;hpb=6d6fccd075268f92cb4fe8cde58c080c1ae48eef;p=ghc-hetmet.git diff --git a/ghc/compiler/main/DriverFlags.hs b/ghc/compiler/main/DriverFlags.hs index 64f6df5..c503066 100644 --- a/ghc/compiler/main/DriverFlags.hs +++ b/ghc/compiler/main/DriverFlags.hs @@ -1,7 +1,7 @@ {-# OPTIONS -#include "hschooks.h" #-} ----------------------------------------------------------------------------- --- $Id: DriverFlags.hs,v 1.47 2001/03/08 09:50:18 simonmar Exp $ +-- $Id: DriverFlags.hs,v 1.48 2001/03/12 14:06:47 simonpj Exp $ -- -- Driver flags -- @@ -341,6 +341,7 @@ getOpts opts = dynFlag opts >>= return . reverse -- we can only change HscC to HscAsm and vice-versa with dynamic flags -- (-fvia-C and -fasm). +-- NB: we can also set the new lang to ILX, via -filx. I hope this is right setLang l = do dfs <- readIORef v_DynFlags case hscLang dfs of @@ -440,6 +441,9 @@ dynamic_flags = [ , ( "fasm", AnySuffix (\_ -> setLang HscAsm) ) , ( "fvia-c", NoArg (setLang HscC) ) , ( "fvia-C", NoArg (setLang HscC) ) +#ifdef ILX + , ( "filx", NoArg (setLang HscILX) ) +#endif -- "active negatives" , ( "fno-implicit-prelude", NoArg (setDynFlag Opt_NoImplicitPrelude) )