From be93cbfa0814c17d3cc86f3b572f97919dbae8e6 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Fri, 17 May 2013 23:37:36 -0300 Subject: [PATCH] Fix Bison paths Some internal FB bison version thing? --- hphp/util/parser/rules.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hphp/util/parser/rules.mk b/hphp/util/parser/rules.mk index c630fbca9..00f4c0a7f 100644 --- a/hphp/util/parser/rules.mk +++ b/hphp/util/parser/rules.mk @@ -1,10 +1,9 @@ - .PHONY: hphp.tab.cpp hphp.tab.cpp: $(PROJECT_ROOT)/src/util/parser/hphp.y @echo "Generating parser code..." export BISON_PKGDATADIR=\ -$(realpath $(EXTERNAL_TOOLS_ROOT))/bison/bison-2.4.1/da39a3e/share/bison - $(V)$(EXTERNAL_TOOLS_ROOT)/bison/bison-2.4.1/da39a3e/bin/bison \ +$(realpath $(EXTERNAL_TOOLS_ROOT))/share/bison + $(V)$(EXTERNAL_TOOLS_ROOT)/bin/bison \ -p$(YYPREFIX) --verbose --locations -d -o$@ $< @perl -p -i -n -e "s/(T_\w+) = ([0-9]+)/YYTOKEN(\\2, \\1)/" \ hphp.tab.hpp