summaryrefslogtreecommitdiffstats
path: root/src/build.cc
Commit message (Collapse)AuthorAgeFilesLines
* Elide output in the middle when exceeding terminal width.Nicolas Despres2011-10-121-3/+4
| | | | | | | | | | When building projects with long file paths, the rule name may disappear since the output is elided on the left side. So you no longer know whether you are compiling or linking. I think the user is interested in both the rule name and the file name. Eliding the output in the middle solves this problem.
* verify -k param is numericEvan Martin2011-09-091-2/+2
| | | | Fixes issue #85.
* fix redundant manifest rebuildEvan Martin2011-09-081-5/+6
| | | | | | | Don't rebuild the manifest when it's already up to date. The underlying problem was that Builder::Build has a confusing API; split the API so it's more clear for callers what the return values mean.
* Factor out State struct from ninja_jumble.cc into its header/source files.Thiago Farina2011-09-031-1/+2
| | | | | | This was a TODO in src/ninja_jumble.cc. Now this task is completed. Signed-off-by: Thiago Farina <tfarina@chromium.org>
* Move RealDiskInterface class to disk_interface.h.Thiago Farina2011-08-251-0/+1
| | | | | | This is a TODO in src/ninja_jumble.cc Signed-off-by: Thiago Farina <tfarina@chromium.org>
* move GetTimeMillis to utilEvan Martin2011-05-241-15/+1
|
* simplify CommandRunner, simplifying users tooEvan Martin2011-05-171-26/+9
| | | | | After much staring at this I think I found the more clear way to express what it's doing.
* rearrange build loop, pass new testEvan Martin2011-05-171-24/+56
|
* show started, not finished, edges in progressEvan Martin2011-05-141-3/+4
| | | | | | In verbose mode (where we don't overprint) it's confusing to show [0/XX] for the first N commands we start. In smart terminal mode, I can't really tell the difference.
* correctly compute truncation marginEvan Martin2011-05-141-2/+4
|
* refactor status printing into BuildStatusEvan Martin2011-05-141-71/+78
| | | | | | Centralizing printing allows being more careful about what is output. 1) Always include the [2/15] prefix on commands. 2) Make the header command match the error output command.
* hide internals of BuildStatusEvan Martin2011-05-141-12/+13
|
* SEMANTIC CHANGE: implicit inputs are now required to existEvan Martin2011-05-131-2/+1
| | | | | | Edges found through depfiles are special: they get an extra empty "phony" rule. (This is identical to the way you hack this with Makefiles.)
* add a versioning header to build log, switch to v2Evan Martin2011-05-111-11/+19
| | | | | In v2 we store both the start and end time of the command. This allows better visualization of the build process.
* expose -k flag to usersEvan Martin2011-05-091-1/+4
|
* add support for ignoring failures of some subtasksEvan Martin2011-05-091-4/+8
|
* windows: subprocess implementation for WindowsEvan Martin2011-05-061-1/+1
| | | | Heavily based on a patch from Sergey Nenakhov <nenakhov.sergey@gmail.com>.
* refactor subprocess to make it easier for windows portEvan Martin2011-05-031-7/+4
| | | | | | Rather than tracking stdout/stderr explicitly, just keep an opaque pointer to a platform-specific 'stream' type. Also provide API to get at the process output.
* windows: use millis abstraction instead of non-portable gettimeofdayEvan Martin2011-05-021-14/+28
|
* use refactored function to support implicit "all" targetEvan Martin2011-05-011-4/+11
|
* add doxygen-compatibile comments to most classesEvan Martin2011-04-291-2/+4
|
* [windows] disable smart terminal supportSergey Nenakhov2011-04-231-2/+10
|
* Fix an exception when terminal is narrow or set for unlimited widthScott Byer2011-04-071-3/+5
|
* limit output width to prevent line-wrappingEvan Martin2011-03-021-0/+12
|
* print short name of command before dumping command stdout/stderrEvan Martin2011-03-011-6/+15
| | | | | | Previously we showed the full command line, but with this change we only show the full command line in verbose mode or when the command fails.
* add copyrightsEvan Martin2011-02-061-0/+14
|
* include command name when printing output, add newlineEvan Martin2011-02-051-6/+10
|
* fancier outputEvan Martin2011-02-051-13/+51
|
* cleanup phony testingEvan Martin2011-02-051-3/+3
|
* implement parallelism flagEvan Martin2011-02-011-3/+4
|
* pass config into build logEvan Martin2011-01-231-1/+2
|
* record edge timingEvan Martin2011-01-081-13/+14
|
* remove needless virtualsEvan Martin2011-01-081-3/+3
|
* don't get stuck on phony edgesEvan Martin2011-01-081-0/+3
|
* don't track timing for phony edgesEvan Martin2011-01-081-3/+6
|
* compute edge timingEvan Martin2011-01-081-8/+28
|
* split out graph into its own headerEvan Martin2011-01-081-0/+1
|
* catch ourselves when we're stuckEvan Martin2011-01-081-5/+13
|
* don't crash in tests where we don't use a log fileEvan Martin2011-01-081-2/+1
|
* state holds build log, not configEvan Martin2011-01-071-1/+1
|
* move buildlog to main driverEvan Martin2010-12-261-5/+3
|
* hook up build logEvan Martin2010-12-261-1/+8
|
* rename BuildStatusLogEvan Martin2010-12-231-11/+11
|
* verbosity tristateEvan Martin2010-12-141-7/+10
|
* use separate config objectEvan Martin2010-12-131-11/+6
|
* dry run flagEvan Martin2010-12-131-0/+28
|
* verbose modeEvan Martin2010-12-071-2/+8
|
* factor out build loggingEvan Martin2010-12-061-14/+39
|
* move src into subdirEvan Martin2010-12-051-0/+280