From f74d5dee1615e4d5ed8763fae40ffe6102c61a2c Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 25 Mar 2015 15:33:07 +0100 Subject: Warn about buggy re2c versions --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cedee8c..9b6b78e 100644 --- a/Makefile +++ b/Makefile @@ -100,6 +100,13 @@ $(SRCDIR)/case_fold_switch.inc: $(DATADIR)/CaseFolding-3.2.0.txt # We include scanners.c in the repository, so this shouldn't # normally need to be generated. $(SRCDIR)/scanners.c: $(SRCDIR)/scanners.re + @case "$$(re2c -v)" in \ + *\ 0.13.7*|*\ 0.14*) \ + echo $$(re2c -v) is known to produce buggy code.; \ + echo Try version 0.13.6 or below.; \ + false; \ + ;; \ + esac re2c --case-insensitive -b -i --no-generation-date -o $@ $< update-spec: -- cgit v1.2.3