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:
parent
1ea903a74a
commit
cff72e7a83
@ -814,6 +814,9 @@ genericBuild() {
|
|||||||
if test "$curPhase" = fixupPhase -a -n "$dontFixup"; then continue; fi
|
if test "$curPhase" = fixupPhase -a -n "$dontFixup"; then continue; fi
|
||||||
if test "$curPhase" = distPhase -a -z "$doDist"; then continue; fi
|
if test "$curPhase" = distPhase -a -z "$doDist"; then continue; fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "@ phase-started $out $curPhase"
|
||||||
|
|
||||||
showPhaseHeader "$curPhase"
|
showPhaseHeader "$curPhase"
|
||||||
dumpVars
|
dumpVars
|
||||||
|
|
||||||
@ -825,6 +828,9 @@ genericBuild() {
|
|||||||
cd "${sourceRoot:-.}"
|
cd "${sourceRoot:-.}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "@ phase-succeeded $out $curPhase"
|
||||||
|
|
||||||
stopNest
|
stopNest
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user