summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-08-04 15:54:08 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-08-05 09:21:49 +0100
commit59534b8022acf97e9f475cde14b85cd0d74088ac (patch)
tree3692956f264f1b6d51348fff57e6294522f58ef5 /mk
parent8feb2813f129532b81be3ae3749af0e5acc40dae (diff)
downloadhaskell-59534b8022acf97e9f475cde14b85cd0d74088ac.tar.gz
Update to work with Alex 3.0: basically disabling Alex's new Unicode
support because we have our own, and defining alexGetByte instead of alexGetChar (actually we also define alexGetChar, for backwards compatibility).
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index e39c5c7381..0adaf69222 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -760,10 +760,17 @@ SRC_HAPPY_OPTS = -agc --strict
#
ALEX = @AlexCmd@
ALEX_VERSION = @AlexVersion@
+Alex3 = @Alex3@
#
# Options to pass to Happy when we're going to compile the output with GHC
#
+ifeq "$(Alex3)" "YES"
+# We aren't using the Unicode support in Alex 3.0 yet, in fact we do our own
+# Unicode handling, so diable Alex's.
+SRC_ALEX_OPTS = -g --latin1
+else
SRC_ALEX_OPTS = -g
+endif
# Should we build haddock docs?
HADDOCK_DOCS = YES