From a38628bee05f000790e8246bf752ef26b6585619 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 10 May 2003 17:57:44 +0000 Subject: [PATCH] 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] --- historic/jam/src/build.jam | 9 ++++++++- jam_src/build.jam | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/historic/jam/src/build.jam b/historic/jam/src/build.jam index c0ff5a7bc..0dd7fc9b7 100644 --- a/historic/jam/src/build.jam +++ b/historic/jam/src/build.jam @@ -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 $(<) : $(>) ; diff --git a/jam_src/build.jam b/jam_src/build.jam index c0ff5a7bc..0dd7fc9b7 100644 --- a/jam_src/build.jam +++ b/jam_src/build.jam @@ -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 $(<) : $(>) ;