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

@ -78,8 +78,12 @@ struct Settings {
instead. */
bool tryFallback;
/* Verbosity level for build output. */
Verbosity buildVerbosity;
/* Whether to show build log output in real time. */
bool verboseBuild = true;
/* If verboseBuild is false, the number of lines of the tail of
the log to show if a build fails. */
size_t logLines = 10;
/* Maximum number of parallel build jobs. 0 means unlimited. */
unsigned int maxBuildJobs;