Add flag to compilation of flex file

Without this flag flex errors out because it hits a hard-coded size limit
issue#70
Houtan Bastani 2019-12-03 15:10:45 +01:00
parent 02cb4cc973
commit 2814f05a67
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 4 additions and 1 deletions

View File

@ -68,8 +68,11 @@ dynare_m_CPPFLAGS = $(BOOST_CPPFLAGS) -I.
dynare_m_LDFLAGS = $(AM_LDFLAGS) $(BOOST_LDFLAGS)
dynare_m_LDADD = macro/libmacro.a -lstdc++fs
# -Ca flag comes from hitting a hard-coded size limit.
# Partial explanation: https://www.owlfolio.org/possibly-useful/flex-input-scanner-rules-are-too-complicated
# There is a Debian bug report about this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=642040
DynareFlex.cc: DynareFlex.ll
$(LEX) -o DynareFlex.cc DynareFlex.ll
$(LEX) -Ca -o DynareFlex.cc DynareFlex.ll
FlexLexer.h:
cp $(LEXINC)/FlexLexer.h . || test -f ./FlexLexer.h