Show the log tail when a build fails

If --no-build-output is given (which will become the default for the
"nix" command at least), show the last 10 lines of the build output if
the build fails.
This commit is contained in:
Eelco Dolstra 2016-04-25 16:47:46 +02:00
parent 6e1b099279
commit 5761827d5b
6 changed files with 55 additions and 16 deletions

View file

@ -171,7 +171,7 @@ struct LegacyArgs : public MixCommonArgs
: MixCommonArgs(programName), parseArg(parseArg)
{
mkFlag('Q', "no-build-output", "do not show build output",
&settings.buildVerbosity, lvlVomit);
&settings.verboseBuild, false);
mkFlag('K', "keep-failed", "keep temporary directories of failed builds",
&settings.keepFailed);