From f19e3063d8c376255bc2749af2f31d35308d8da8 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Wed, 15 Sep 2004 02:47:03 +0000 Subject: [PATCH] [project @ 2004-09-15 02:47:03 by wolfgang] 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/ghc/compiler/cmm/CmmLex.x b/ghc/compiler/cmm/CmmLex.x index e1be71a..ff98508 100644 --- a/ghc/compiler/cmm/CmmLex.x +++ b/ghc/compiler/cmm/CmmLex.x @@ -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 } -- 1.7.10.4