Bug 1603627 - Write out a minimal target.json file for spidermonkey shell builds. r=froydnj

The browser build generates this file during the packaging step, which does not exist for JS shell builds. I made a brief attempt to call informulate.py as it does, but that seemed to require some things that are not available during the shell build. So I went with the cheap and easy approach to provide just the fields :jkratzer uses.

Differential Revision: https://phabricator.services.mozilla.com/D57028

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Steve Fink 2019-12-13 22:42:18 +00:00
parent 27b2e355ce
commit bcc464ad31

View File

@ -21,4 +21,15 @@ cp -rL $SRCDIR/obj-spider/dist/bin/{js,jsapi-tests,js-gdb.py} $UPLOAD_DIR
# directory as the built output.
gzip -c $MOZ_FETCHES_DIR/clang/bin/llvm-symbolizer > $UPLOAD_DIR/llvm-symbolizer.gz || true
# Fuzzing also uses a few fields in target.json file for automated downloads to
# identify what was built.
if [ -n "$MOZ_BUILD_DATE" ] && [ -n "$GECKO_HEAD_REV" ]; then
cat >$UPLOAD_DIR/target.json <<EOF
{
"buildid": "$MOZ_BUILD_DATE",
"moz_source_stamp": "$GECKO_HEAD_REV"
}
EOF
fi
exit $BUILD_STATUS