mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
6d15c6ea48
Summary: Depends on D21063. Ref T13492. Currently, XHPAST defines a version in both PHP code and C code, and they must be kept in sync. Switch to a single definition in PHP, then carry it through the build pipeline into C. Test Plan: Did a clean rebuild of XHPAST, saw a version number carried in from PHP. Ran "xhpast --version". Maniphest Tasks: T13492 Differential Revision: https://secure.phabricator.com/D21064 |
||
---|---|---|
.. | ||
bin | ||
ast.hpp | ||
astnode.hpp | ||
build-xhpast.php | ||
Makefile | ||
parser.y | ||
parser.yacc.cpp | ||
parser.yacc.hpp | ||
parser_nodes.php | ||
README | ||
scanner.l | ||
scanner.lex.cpp | ||
scanner.lex.hpp | ||
xhpast.cpp |
= Building = Normally, you can build `xhpast` by running `make`, which will create a binary in this directory: xhpast/ $ make You can run `make install` to copy that binary to the right place in libphutil so that libphutil, Phabricator, Diviner, etc., can use xhpast. If you are developing `xhpast`, you need to `make parser scanner xhpast` instead to regenerate the parser and scanner: xhpast/ $ make parser scanner xhpast We ship the generated parser and scanner and do not rebuild them by default to prevent users from needing to install flex and bison and fiddle around with flex versions.