Home GnuPG

Allow XHPAST to be built without flex and bison
7f4daf71c480Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Allow XHPAST to be built without flex and bison

Summary:
Fixes T9289. This is a bit hacky, but feels like a reasonable workaround. Basically, add SKIP_PARSER and SKIP_SCANNER flags to the Makefile. If these flags are present then the Makefile effectively behaves like this:

%.lex.hpp %.lex.cpp: %.l
    touch $*.lex.hpp $*.lex.cpp

%.yacc.hpp %.yacc.cpp: %.y
    touch $*.yacc.hpp $*.yacc.cpp

If users are compiling XHPAST with libphutil/scripts/build_xhpast.php (which is the recommendation method) then there should be no difference here because this script will pass SKIP_PARSER=1 SKIP_LEXER=1.

Test Plan: Played around with make and confirmed that the flags behaved as expected.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: avivey, tycho.tatitscheff, Korvin

Maniphest Tasks: T9289

Differential Revision: https://secure.phabricator.com/D14376

Details

Provenance
Joshua Spence <josh@freelancer.com>Authored on Nov 2 2015, 9:52 AM
joshuaspence <autocommitter@example.com>Committed on Nov 2 2015, 9:52 AM
Parents
rPHUTIL59f5a8d2bb82: Add scroll wrapper for big tables
Branches
Unknown
Tags
Unknown

Event Timeline

joshuaspence <autocommitter@example.com> committed rPHUTIL7f4daf71c480: Allow XHPAST to be built without flex and bison (authored by Joshua Spence <josh@freelancer.com>).Nov 2 2015, 9:52 AM