cmark

My personal build of CMark ✏️

Commit
c444f374f7c920c5bb699a6e9ad3c526d29edd9b
Parent
756b95d184103857b5196063ef310633cb8dba5b
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #20 from nwellnhof/re2c_warning

Warn about buggy re2c versions

Diffstat

1 file changed, 7 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified Makefile 7 7 0
diff --git 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: