From: Ian Lynagh Date: Thu, 8 Jul 2010 20:35:23 +0000 (+0000) Subject: Reorder the CPP flags so -optP can override the platform defines X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=1148cb85d9fc73e5cf67c477a1e08fd994961e60 Reorder the CPP flags so -optP can override the platform defines --- diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index ea6c933..9128538 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1844,9 +1844,9 @@ doCpp dflags raw include_cc_opts input_fn output_fn = do cpp_prog ([SysTools.Option verb] ++ map SysTools.Option include_paths ++ map SysTools.Option hsSourceCppOpts + ++ map SysTools.Option target_defs ++ map SysTools.Option hscpp_opts ++ map SysTools.Option cc_opts - ++ map SysTools.Option target_defs ++ [ SysTools.Option "-x" , SysTools.Option "c" , SysTools.Option input_fn