Page MenuHomePhorge

xhpast-make.bat
ActivePublic

Authored by speck on Feb 6 2024, 02:16.
Tags
None
Referenced Files
F1336706: xhpast-make.bat
Feb 6 2024, 02:28
F1336663: xhpast-make.bat
Feb 6 2024, 02:16
Subscribers
None
REM Generate parser_nodes.php and node_names.hpp
php -f ./bin/xhpast-generate-nodes.php
REM Compile the parser and scanner, resulting in parser.yacc.o and scanner.lex.o
clang++ -c -I./ -O3 -o parser.yacc.o parser.yacc.cpp
clang++ -c -I./ -O3 -o scanner.lex.o scanner.lex.cpp
REM Compile the xhpast.exe
REM Get the XHPAST_VERSION (in this case 7.1.6) by running: php -f ./bin/xhpast-generate-version.php
clang++ -I./ -L./ -static -O3 -D XHPAST_VERSION=\"7.1.6\" -o xhpast.exe parser.yacc.o scanner.lex.o xhpast.cpp