Move another flag from the Makefile into a pragma
authorIan Lynagh <igloo@earth.li>
Thu, 10 Jul 2008 12:54:22 +0000 (12:54 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 10 Jul 2008 12:54:22 +0000 (12:54 +0000)
compiler/Makefile
compiler/parser/Lexer.x

index ea02562..230dae5 100644 (file)
@@ -669,8 +669,6 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
 main/SysTools_HC_OPTS          += '-\#include <windows.h>' '-\#include <process.h>'
 endif
 
-parser/Lexer_HC_OPTS += -funbox-strict-fields
-
 # ghc_strlen percolates through so many modules that it is easier to get its
 # prototype via a global option instead of a myriad of per-file OPTIONS
 SRC_HC_OPTS += '-\#include "cutils.h"'
index b9abf7a..525d50b 100644 (file)
@@ -31,6 +31,8 @@
 -- Note that Alex itself generates code with with some unused bindings and
 -- without type signatures, so removing the flag might not be possible.
 
+{-# OPTIONS_GHC -funbox-strict-fields #-}
+
 module Lexer (
    Token(..), lexer, pragState, mkPState, PState(..),
    P(..), ParseResult(..), getSrcLoc,