stdenv: Emit phase-started' and phase-succeeded' events.

These markers follow the format of those of `nix-store --print-build-trace',
which allows extraction of, say, phase durations in a similar way.

svn path=/nixpkgs/branches/stdenv-updates/; revision=26115
This commit is contained in:
Ludovic Courtès 2011-02-25 15:28:11 +00:00
parent 1ea903a74a
commit cff72e7a83

View file

@ -814,6 +814,9 @@ genericBuild() {
if test "$curPhase" = fixupPhase -a -n "$dontFixup"; then continue; fi
if test "$curPhase" = distPhase -a -z "$doDist"; then continue; fi
echo
echo "@ phase-started $out $curPhase"
showPhaseHeader "$curPhase"
dumpVars
@ -825,6 +828,9 @@ genericBuild() {
cd "${sourceRoot:-.}"
fi
echo
echo "@ phase-succeeded $out $curPhase"
stopNest
done