Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add a test for the "deps out of date" case | Evan Martin | 2013-04-09 | 1 | -1/+1 |
| | | | | It touched the various remaining XXXes in the code, hooray. | ||||
* | use logged deps mtime in dirty calculation | Evan Martin | 2013-04-08 | 1 | -5/+15 |
| | | | | | | | | The idea here is that it's possible for a build to complete (writing its output) but then for Ninja to get interrupted before writing out the updated dependency information. In that case the mtime stored in the deps log (if any) will match the previous output, and we'll know we need to rebuild the output just to get the deps updated. | ||||
* | rename "special" to "deps" | Evan Martin | 2013-04-08 | 1 | -4/+4 |
| | |||||
* | use special=anything to trigger loading from depslog | Evan Martin | 2013-04-08 | 1 | -1/+1 |
| | |||||
* | add "special=gcc" attribute, use to load depslog | Evan Martin | 2013-04-08 | 1 | -10/+34 |
| | |||||
* | use DepsLog in loading dependencies | Evan Martin | 2013-04-08 | 1 | -56/+79 |
| | | | | WIP | ||||
* | factor out implicit dep loading | Evan Martin | 2013-04-08 | 1 | -2/+3 |
| | |||||
* | refactor some of the output mtime-handling code | Evan Martin | 2013-04-05 | 1 | -12/+13 |
| | | | | Reduces duplicated explain output. | ||||
* | more verbose error (including path) when depfile fails to load | Scott Graham | 2013-01-24 | 1 | -1/+3 |
| | |||||
* | rearrange handling of builtin bindings to make rules simpler | Evan Martin | 2012-12-29 | 1 | -36/+45 |
| | | | | | Now, a 'build' block can override any special binding like 'command' or 'description' if it needs to. | ||||
* | wrap some overlong lines | Evan Martin | 2012-12-29 | 1 | -3/+4 |
| | |||||
* | Make edge dump pool name, and skip default pool | Robert Iannucci | 2012-11-10 | 1 | -0/+7 |
| | |||||
* | Pull graph.cc too | Robert Iannucci | 2012-11-09 | 1 | -1/+2 |
| | |||||
* | delete some obsolete TODOs | Evan Martin | 2012-10-31 | 1 | -2/+1 |
| | |||||
* | trailing whitespace | Evan Martin | 2012-10-31 | 1 | -1/+1 |
| | |||||
* | fix whitespace | Evan Martin | 2012-10-23 | 1 | -14/+14 |
| | |||||
* | remove a redundant arg to RecomputeOutputDirty | Evan Martin | 2012-09-02 | 1 | -17/+12 |
| | |||||
* | split out dirty recomputation logic from Edge class | Evan Martin | 2012-09-02 | 1 | -51/+56 |
| | | | | | | | | | | Rather than passing States and DiskInterfaces through all the calls, put the necessary ambient information in a new DependencyScan object and move the code accordingly. Note: I didn't move the source location of the functions to preserve history, though this does result in a sort of weird order for the functions in graph.cc. | ||||
* | safer build: consider target dirty if depfile is missing | Maxim Kalaev | 2012-08-30 | 1 | -3/+9 |
| | |||||
* | if a file is missing in the log, count it as dirty | Scott Graham | 2012-08-15 | 1 | -4/+9 |
| | | | | | | | This could cause overbuilding (if the log is missing an entry and the right file is already in place) but is otherwise necessary for correctness (if a file is already in place but we don't have a log entry for it). | ||||
* | Revert "Make StringPiece data members private." | Nico Weber | 2012-07-28 | 1 | -2/+1 |
| | | | | | | This reverts commit 904c9610fe66c4f4bd63a07d6f057c8603d24394. The commit caused issue #380, this revert fixes it. The revert also makes the test from the previous commit pass. | ||||
* | Merge pull request #352 from tfarina/string-piece-private | Evan Martin | 2012-07-27 | 1 | -1/+2 |
|\ | | | | | Make StringPiece data members private. | ||||
| * | Make StringPiece data members private. | Thiago Farina | 2012-06-30 | 1 | -1/+2 |
| | | | | | | | | Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | | explain mode: show which input is more recent | Evan Martin | 2012-07-17 | 1 | -1/+4 |
| | | | | | | | | Patch from Scott Graham <scottmg@chromium.org>. | ||||
* | | Rename parsers.* to manifest_parser.* | Thiago Farina | 2012-07-09 | 1 | -1/+1 |
|/ | | | | | | So it matches with the class name in there. Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | Improving Edge::Dump, introducing Node::Dump | Maxim Kalaev | 2012-06-28 | 1 | -5/+24 |
| | | | | | | | - Edge::Dump could crash if called while inputs_ is being extended - Node::Dump prints Node attributes, in-edge and lists of out-edges - Dump functions now accept "prefix" parameter, printed along with the object for easier orientation. For example, edge->Dump("Re-reading deps files"). | ||||
* | add $in_newline | Scott Graham | 2012-06-15 | 1 | -6/+10 |
| | |||||
* | Only store command hashes in the build log. | Nico Weber | 2012-06-15 | 1 | -2/+2 |
| | | | | | | | | | | | | | | .build_log load time 350ms -> 17ms, filesize 197MB -> 1.6MB on Mac. On Windows, it's 500ms -> 20ms. Makes the build log a lot less useful for scripts, but there could be a tool for use cases that need log information. A prototype of such a tool is in https://github.com/nico/ninja/commit/1b243d311 The hash function is 64bit murmurhash2. Assuming that that different commands get the same hash only by chance, it's is very unlikely for two different commands to hash to the same value with a 64bit hash. | ||||
* | views: Mark single-argument constructors as explicit. | Thiago Farina | 2012-05-06 | 1 | -1/+1 |
| | | | | | | | | This was reported by cpplint as: python ~/depot_tools/cpplint.py 2>&1 | grep -v "Done processing" | grep explicit Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | add support for -d explain to help debug why rules are running | Scott Graham | 2012-04-13 | 1 | -6/+25 |
| | |||||
* | Mark a phony target with no inputs as outputs-ready | Peter Collingbourne | 2012-03-05 | 1 | -4/+4 |
| | | | | | | | | Even if such a target is dirty (i.e. the file does not exist), it has nothing to do, which makes it safe to mark as outputs-ready. Without this change, ninja will print no output when rebuilding the target (or an order-only dependency thereof), instead of reporting it has "no work to do". | ||||
* | fix some public/private errors in rspfile patch | Evan Martin | 2012-02-23 | 1 | -3/+3 |
| | |||||
* | Response files | unknown | 2012-02-09 | 1 | -3/+20 |
| | |||||
* | remove string copy while loading depfiles | Evan Martin | 2012-01-09 | 1 | -3/+2 |
| | |||||
* | add a '-d stats' flag for detailed timings | Evan Martin | 2012-01-05 | 1 | -0/+3 |
| | | | | | | 1) Add a system for recording detailed timing info of functions. 2) Add a -d flag for requesting debug info at runtime, with the above as the first user. | ||||
* | convert all time_t to a new TimeStamp type | Evan Martin | 2012-01-05 | 1 | -4/+5 |
| | |||||
* | When expanding $in and $out, wrap with quotes if the filename has a space. | Jeremy Apthorp | 2012-01-02 | 1 | -1/+8 |
| | |||||
* | switch DepfileParser to take a string* to make memory clearer | Evan Martin | 2011-12-27 | 1 | -1/+1 |
| | | | | Add some comments as well. | ||||
* | Fix the TODO in Rule class. | Thiago Farina | 2011-12-24 | 1 | -4/+4 |
| | | | | | | Move various data members to private section and provide accessors for them. Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | use re2c to parse depfiles | Evan Martin | 2011-12-07 | 1 | -11/+12 |
| | |||||
* | refactor EdgeEnv | Evan Martin | 2011-12-07 | 1 | -23/+35 |
| | |||||
* | make Rule::generator_ and restat_ private | Evan Martin | 2011-12-07 | 1 | -2/+2 |
| | |||||
* | make Rule::name_ private | Evan Martin | 2011-12-07 | 1 | -1/+1 |
| | |||||
* | make Node::out_edges_ private | Evan Martin | 2011-12-07 | 1 | -1/+1 |
| | |||||
* | make Node::in_edge_ private | Evan Martin | 2011-12-07 | 1 | -5/+5 |
| | |||||
* | make Node::dirty_ private | Evan Martin | 2011-12-07 | 1 | -3/+3 |
| | |||||
* | merge FileStat into Node | Evan Martin | 2011-12-07 | 1 | -18/+18 |
| | | | | | | The two were always one-to-one anyway. I started adding accessors to FileStat and then realized most users wanted them on Node and that forwarding them through was silly. | ||||
* | refactor to remove Node::ready() | Evan Martin | 2011-12-07 | 1 | -0/+9 |
| | |||||
* | Factor out Edge::EvaluateDepFile | Peter Collingbourne | 2011-12-06 | 1 | -3/+6 |
| | |||||
* | disable the 'unused parameter' warning | Evan Martin | 2011-12-05 | 1 | -2/+2 |
| | | | | It was firing too often, and hadn't uncovered any bugs. |