2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Removed redundant -y flag from bison flags

Added -t -v to the yacc/bison flags when --debug is used.

Additionally, we now grab $(YACCFLAGS) from the
environment/command-line to get more yacc diagnostics


[SVN r18379]
This commit is contained in:
Dave Abrahams
2003-05-10 17:57:44 +00:00
parent a05eca2570
commit a38628bee0
2 changed files with 16 additions and 2 deletions

View File

@@ -381,9 +381,16 @@ yacc ?= [ GLOB $(PATH) : bison bison.exe ] ;
yacc = $(yacc[1]) ;
switch $(yacc:D=:S=)
{
case bison : yacc += -y -d --yacc ; # -t -l -v ;
case bison : yacc += -d --yacc ; # -t -l -v ;
case yacc : yacc += -d ;
}
if $(debug)
{
yacc += -t -v ;
}
yacc += $(YACCFLAGS) ;
rule .yacc
{
DEPENDS $(<) : $(>) ;

View File

@@ -381,9 +381,16 @@ yacc ?= [ GLOB $(PATH) : bison bison.exe ] ;
yacc = $(yacc[1]) ;
switch $(yacc:D=:S=)
{
case bison : yacc += -y -d --yacc ; # -t -l -v ;
case bison : yacc += -d --yacc ; # -t -l -v ;
case yacc : yacc += -d ;
}
if $(debug)
{
yacc += -t -v ;
}
yacc += $(YACCFLAGS) ;
rule .yacc
{
DEPENDS $(<) : $(>) ;