diff --git a/src/Makefile_obj.in b/src/Makefile_obj.in index 8b058c7b0..b686d5775 100644 --- a/src/Makefile_obj.in +++ b/src/Makefile_obj.in @@ -94,7 +94,6 @@ LIBS = $(CFG_LIBS) -lm CPPFLAGS += -MMD CPPFLAGS += -I. -I$(bldsrc) -I$(srcdir) -I$(incdir) -I../../include -CPPFLAGS += -DYYDEBUG # Required to get nice error messages #CPPFLAGS += -DVL_LEAK_CHECKS # If running valgrind or other hunting tool CPPFLAGS += $(COPT) CPPFLAGS += -MP # Only works on recent GCC versions diff --git a/src/V3ParseGrammar.cpp b/src/V3ParseGrammar.cpp index 329631792..e49b8f5d8 100644 --- a/src/V3ParseGrammar.cpp +++ b/src/V3ParseGrammar.cpp @@ -14,6 +14,8 @@ // //************************************************************************* +#define YYDEBUG 1 // Nicer errors + #include "V3Ast.h" // This must be before V3ParseBison.cpp, as we don't want #defines to conflict //======================================================================