Build Verilog parser with -DYYMAXDEPTH=100000, fixes #906
authorClifford Wolf <clifford@clifford.at>
Fri, 29 Mar 2019 15:32:44 +0000 (16:32 +0100)
committerClifford Wolf <clifford@clifford.at>
Fri, 29 Mar 2019 15:32:44 +0000 (16:32 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verilog/Makefile.inc

index dbaace5854c9762a5d673274e5a1db2c7b52fa71..0a1f97ac0b31ee511191a8f71de5fd375332cd39 100644 (file)
@@ -14,6 +14,8 @@ frontends/verilog/verilog_lexer.cc: frontends/verilog/verilog_lexer.l
        $(Q) mkdir -p $(dir $@)
        $(P) flex -o frontends/verilog/verilog_lexer.cc $<
 
+frontends/verilog/verilog_parser.tab.o: CXXFLAGS += -DYYMAXDEPTH=100000
+
 OBJS += frontends/verilog/verilog_parser.tab.o
 OBJS += frontends/verilog/verilog_lexer.o
 OBJS += frontends/verilog/preproc.o