From: Ian Lynagh Date: Thu, 10 Jul 2008 12:54:22 +0000 (+0000) Subject: Move another flag from the Makefile into a pragma X-Git-Tag: Before_cabalised-GHC~40 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=43f56cdf26f945d068975fa5a372ca87755d9791 Move another flag from the Makefile into a pragma --- diff --git a/compiler/Makefile b/compiler/Makefile index ea02562..230dae5 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -669,8 +669,6 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32" main/SysTools_HC_OPTS += '-\#include ' '-\#include ' 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 b9abf7a..525d50b 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,