[project @ 2004-09-15 02:47:03 by wolfgang]
authorwolfgang <unknown>
Wed, 15 Sep 2004 02:47:03 +0000 (02:47 +0000)
committerwolfgang <unknown>
Wed, 15 Sep 2004 02:47:03 +0000 (02:47 +0000)
Accept '#pragma' lines in the cmm parser.
This is necessary because Apple's version of GNU cpp 3.3 leaves #pragma
lines in it's output, which cause the build to fail on Mac OS X with
GCC >= 3.3

ghc/compiler/cmm/CmmLex.x

index e1be71a..ff98508 100644 (file)
@@ -61,6 +61,7 @@ $namechar  = [$namebegin $digit]
 cmm :-
 
 $white_no_nl+          ;
+^\# pragma .* \n        ; -- Apple GCC 3.3 CPP generates pragmas in its output
 
 ^\# (line)?            { begin line_prag }