Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-generate repo_schema and compiler_id on build
- Loading branch information
Showing
6 changed files
with
40 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
cd ${HPHP_HOME} | ||
COMPILER_ID=`git describe --all --long --abbrev=40 --always` | ||
echo "#define COMPILER_ID \"${COMPILER_ID}\"" > src/runtime/base/compiler_id.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
cd ${HPHP_HOME} | ||
# Generate src/runtime/vm/repo_schema.h | ||
REPO_TREE=`git log -n1 --pretty=format:%T HEAD` | ||
REPO_MODS=`git diff --name-only HEAD` | ||
if [ "${REPO_MODS}" != "" ]; then | ||
REPO_TREE=` | ||
export GIT_INDEX_FILE=.git-index-$$$$; | ||
git read-tree ${REPO_TREE}; | ||
git update-index --add --remove ${REPO_MODS}; | ||
git write-tree; | ||
rm -f $GIT_INDEX_FILE` | ||
fi | ||
HHVM_REPO_SCHEMA=`git ls-tree --full-tree ${REPO_TREE} src/ | grep -v src/test | git hash-object --stdin` | ||
echo "#define REPO_SCHEMA \"${HHVM_REPO_SCHEMA}\"" > src/runtime/vm/repo_schema.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.