Generate and embed build id to report
commit2145b74188f0793f804ce392e7ab8d03baf5d9c6
authorMichael O'Farrell <michaelofarrell@fb.com>
Thu, 31 Aug 2017 21:51:08 +0000 (31 14:51 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 31 Aug 2017 21:59:43 +0000 (31 14:59 -0700)
tree7c9f79be387fd10dffa00566c76886bc2362143a
parent9937602d051ba55ed60e938ac749db79fa909b67
Generate and embed build id to report

Summary:
Using a similar strategy to `hphp/hhvm/generate-buildinfo.sh`:

Use the commit hash + diff if in version control or just hash all the things otherwise.

Perhaps a little overeager but it should at least be correct

Incidentally this makes the build destination for the binary hideous: hphp/php7/php7/php7 :P

Reviewed By: paulbiss

Differential Revision: D5472573

fbshipit-source-id: e1aea06a978fe21b76a1e2746c7a8fd1cf385aa1
hphp/php7/php7.cpp
hphp/test/run
hphp/tools/generate-build-id.sh [new file with mode: 0755]