summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-10 12:54:22 +0000
committerIan Lynagh <igloo@earth.li>2008-07-10 12:54:22 +0000
commit43f56cdf26f945d068975fa5a372ca87755d9791 (patch)
treeadcefbee33e45aa127c9bd2c88a0144ed9b5dfd1
parent0d792bea36420e657fb293d9f90f35d8ef96cb4f (diff)
downloadhaskell-43f56cdf26f945d068975fa5a372ca87755d9791.tar.gz
Move another flag from the Makefile into a pragma
-rw-r--r--compiler/Makefile2
-rw-r--r--compiler/parser/Lexer.x2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
index ea02562e87..230dae540f 100644
--- a/compiler/Makefile
+++ b/compiler/Makefile
@@ -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"'
diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x
index b9abf7a848..525d50bd61 100644
--- a/compiler/parser/Lexer.x
+++ b/compiler/parser/Lexer.x
@@ -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,