Bug 1729611 - Fix llvm-dsymutil wrapper after the move to MOZ_FETCHES_DIR for downloaded toolchains. r=firefox-build-system-reviewers,mhentges

The change happened 2 years ago in bug 1571562, which means the script
hasn't hit a llvm-dsymutil crash since then (we would have noticed that
it doesn't produce reproducers if we had recurring llvm-dsymutil crashes).
So before removing the script, fix it, so that if we do need to dig it
up from history, we don't pull a broken version.

Differential Revision: https://phabricator.services.mozilla.com/D124884
This commit is contained in:
Mike Hommey 2021-09-09 00:11:46 +00:00
parent 692e4afda9
commit e779c5d35f

View File

@ -61,7 +61,7 @@ dir="\$(dirname \$0)"
exit \$? exit \$?
EOF EOF
chmod +x "$tmpdir/crasher/run-me.sh" chmod +x "$tmpdir/crasher/run-me.sh"
(cd "$tmpdir"/crasher; DSYMUTIL=/builds/worker/workspace/build/src/llvm-dsymutil/bin/llvm-dsymutil ./run-me.sh > /dev/null 2>&1) (cd "$tmpdir"/crasher; DSYMUTIL=$REAL_DSYMUTIL ./run-me.sh > /dev/null 2>&1)
if [ $? -eq 139 ]; then if [ $? -eq 139 ]; then
echo "Could reproduce with a reduced testcase. Creating an artifact." >&2 echo "Could reproduce with a reduced testcase. Creating an artifact." >&2
mkdir -p "$HOME/artifacts" mkdir -p "$HOME/artifacts"