[project @ 2001-12-03 14:49:24 by sebc]
authorsebc <unknown>
Mon, 3 Dec 2001 14:49:24 +0000 (14:49 +0000)
committersebc <unknown>
Mon, 3 Dec 2001 14:49:24 +0000 (14:49 +0000)
On MacOS X, disable Apple's "smart" cpp

ghc/compiler/main/DriverFlags.hs

index fc78b68..069ddb7 100644 (file)
@@ -1,7 +1,7 @@
 {-# OPTIONS -#include "hschooks.h" #-}
 
 -----------------------------------------------------------------------------
--- $Id: DriverFlags.hs,v 1.78 2001/10/29 13:25:19 simonmar Exp $
+-- $Id: DriverFlags.hs,v 1.79 2001/12/03 14:49:24 sebc Exp $
 --
 -- Driver flags
 --
@@ -532,6 +532,9 @@ machdepCCOpts
        -- register used for global register variable", we simply
        -- disable all warnings altogether using the -w flag. Oh well.
 
+   | prefixMatch "powerpc-apple-macosx" cTARGETPLATFORM
+       = return ( ["-no-cpp-precomp"], [""] )
+
    | prefixMatch "powerpc" cTARGETPLATFORM || prefixMatch "rs6000" cTARGETPLATFORM
        = return ( ["-static"], ["-finhibit-size-directive"] )