Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ManifestParser constructor accesses its first argument, don't pass NULL | Nico Weber | 2013-01-03 | 1 | -3/+6 |
| | | | | | | | | | | | The constructor does env_ = &state->bindings_; so env_ is effectively set to offsetof(ManifestParser, bindings_). This will blow up if env_ gets dereferenced -- this doesn't seem to happen in these tests, but it's less confusing with this patch. Also, passing &state is consistent with the rest of this test. | ||||
* | fix build on non-Linux glibc systems | Pino Toscano | 2012-12-29 | 1 | -2/+2 |
| | | | | | | | | | | | | ninja-build does not build on non-Linux archs, such as GNU/kFreeBSD and GNU/Hurd. The problem is that the GetProcessorCount() implementation for these architectures is the sysconf() one, but <unistd.h> has not been included, causing sysconf() and _SC_NPROCESSORS_ONLN to not be declared. Another solution (which is the one I chose) is to make use of the "linux" implementation which uses get_nprocs(), which is a GNU extension and thus available for anything using GNU libc. | ||||
* | drop the "rules" tool completely | Evan Martin | 2012-12-29 | 1 | -19/+0 |
| | | | | | I had already broken this earlier, but the refactor of variable handling broke it completely. | ||||
* | rearrange handling of builtin bindings to make rules simpler | Evan Martin | 2012-12-29 | 12 | -154/+183 |
| | | | | | 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 | 12 | -27/+53 |
| | |||||
* | fix all "class" -> "struct" | Evan Martin | 2012-12-29 | 5 | -11/+9 |
| | |||||
* | Merge pull request #467 from ppuryear/browse-error | Evan Martin | 2012-12-29 | 1 | -5/+6 |
|\ | | | | | browse: Read ninja's error text from stderr. | ||||
| * | browse: Read ninja's error text from stderr. | Philip Puryear | 2012-12-08 | 1 | -5/+6 |
| | | |||||
* | | wrap test in anon namespace | Evan Martin | 2012-12-28 | 1 | -0/+4 |
| | | |||||
* | | correctly open /dev/null in subprocesses | Evan Martin | 2012-12-21 | 2 | -1/+16 |
| | | | | | | | | Fixes issue #468. | ||||
* | | update a comment | Evan Martin | 2012-12-21 | 1 | -6/+3 |
| | | |||||
* | | NINJA_STATUS: add support of `%p` for percentage | yannicklm | 2012-12-14 | 1 | -0/+8 |
| | | |||||
* | | Merge pull request #461 from riannucci/global_section | Evan Martin | 2012-12-13 | 15 | -202/+581 |
|\ \ | |/ |/| | Resource pools for ninja | ||||
| * | Remove unnecessary parameter from ShouldDelayEdge | Robert Iannucci | 2012-11-30 | 2 | -2/+2 |
| | | |||||
| * | Rename isValid | Robert Iannucci | 2012-11-30 | 1 | -1/+1 |
| | | |||||
| * | Fix formatting | Robert Iannucci | 2012-11-30 | 4 | -13/+13 |
| | | |||||
| * | Improve comments for src/state.h | Robert Iannucci | 2012-11-30 | 1 | -3/+12 |
| | | |||||
| * | Doc improvements | Robert Iannucci | 2012-11-30 | 1 | -0/+8 |
| | | |||||
| * | Make Edge->pool() a pointer like it should have been | Robert Iannucci | 2012-11-30 | 2 | -8/+8 |
| | | |||||
| * | Revert "Dump state for debugging" | Robert Iannucci | 2012-11-10 | 1 | -4/+0 |
| | | | | | | | | This reverts commit 9b196dc806e57cefd88bbbacd12286447dbf9ad9. | ||||
| * | Uninitialized variable! There is always one... | Robert Iannucci | 2012-11-10 | 1 | -1/+1 |
| | | |||||
| * | Dump state for debugging | Robert Iannucci | 2012-11-10 | 1 | -0/+4 |
| | | |||||
| * | Make edge dump pool name, and skip default pool | Robert Iannucci | 2012-11-10 | 2 | -1/+10 |
| | | |||||
| * | cover the nulled pool case | Robert Iannucci | 2012-11-10 | 1 | -19/+20 |
| | | |||||
| * | Add some tests! | Robert Iannucci | 2012-11-10 | 1 | -3/+129 |
| | | |||||
| * | begin rationalizing platform for both parsers | Robert Iannucci | 2012-11-10 | 1 | -7/+5 |
| | | |||||
| * | block parse method done | Robert Iannucci | 2012-11-10 | 6 | -185/+277 |
| | | |||||
| * | all building and tests passing | Robert Iannucci | 2012-11-09 | 2 | -2/+2 |
| | | |||||
| * | Dump pools with State | Robert Iannucci | 2012-11-09 | 3 | -6/+26 |
| | | |||||
| * | Fix a bug... now chrome build works O_O | Robert Iannucci | 2012-11-09 | 1 | -1/+1 |
| | | |||||
| * | and some basic implementation | Robert Iannucci | 2012-11-09 | 4 | -15/+46 |
| | | |||||
| * | stub out an api and de-constify Pool | Robert Iannucci | 2012-11-09 | 6 | -17/+63 |
| | | |||||
| * | Const ref FTW | Robert Iannucci | 2012-11-09 | 1 | -1/+1 |
| | | |||||
| * | Pull graph.cc too | Robert Iannucci | 2012-11-09 | 1 | -1/+2 |
| | | |||||
| * | Pull out base changes to state | Robert Iannucci | 2012-11-09 | 2 | -2/+40 |
| | | |||||
* | | Fix clang warning. | Thiago Farina | 2012-11-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | The return type of CollectTarget() is Node, so we should return NULL in the failure case instead of false. src/ninja.cc:188:16: warning: initialization of pointer of type 'Node *' to null from a constant boolean expression [-Wbool-conversion] return false; ^~~~~ Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | | Merge pull request #459 from maximuska/proposed/refactor-collect-targets | Evan Martin | 2012-11-12 | 1 | -49/+51 |
|\ \ | | | | | | | refactoring: decompose CollectTargetsFromArgs | ||||
| * | | refactoring: decompose CollectTargetsFromArgs | Maxim Kalaev | 2012-11-09 | 1 | -49/+51 |
| | | | |||||
* | | | Merge pull request #443 from tfarina/disk-interface-alloc | Evan Martin | 2012-11-12 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | Allocate disk_interface near where it's needed. | ||||
| * | | | Allocate disk_interface near where it's needed. | Thiago Farina | 2012-10-10 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | This avoids allocating disk_interface unnecessarily. Signed-off-by: Thiago Farina <tfarina@chromium.org> | ||||
* | | | | Merge pull request #454 from nico/tweak | Evan Martin | 2012-11-12 | 1 | -1/+1 |
|\ \ \ \ | | | | | | | | | | | Fix a doxygen bug found by clang's -Wdocumentation. | ||||
| * | | | | Fix a doxygen bug found by clang's -Wdocumentation. | Nico Weber | 2012-11-08 | 1 | -1/+1 |
| | |_|/ | |/| | | | | | | | | | | | | | | (That found one more issue, but I think that might be a bug in -Wdocumentation, http://llvm.org/PR14295.) | ||||
* | | | | Merge pull request #458 from rgeary1/minor | Evan Martin | 2012-11-09 | 2 | -1/+4 |
|\ \ \ \ | |/ / / |/| | | | Minor improvements to ninja : Different exit code if user presses Ctrl-C, add eclipse to .gitignore, Improve an error message | ||||
| * | | | Exit status = 2 if user presses ctrl-c | Richard Geary | 2012-11-09 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | Change-Id: I7be958e18eb2e434e78afb6e03b332281a651957 | ||||
| * | | | Improved error message with more information | Richard Geary | 2012-11-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | Change-Id: Idb1ce67a320a9819de262d83b498ee10eb362ed2 | ||||
* | | | | refactor repeated code in cleaner | Evan Martin | 2012-10-31 | 2 | -14/+18 |
| | | | | |||||
* | | | | delete some obsolete TODOs | Evan Martin | 2012-10-31 | 1 | -2/+1 |
| | | | | |||||
* | | | | trailing whitespace | Evan Martin | 2012-10-31 | 1 | -1/+1 |
| |_|/ |/| | | |||||
* | | | browse.py: Don't truncate error message if ninja -t query fails. | Philip Puryear | 2012-10-26 | 1 | -10/+15 |
| | | | | | | | | | | | | Signed-off-by: Philip Puryear <philippuryear@gmail.com> | ||||
* | | | browse.py: Fix truncation with an unknown target. | Philip Puryear | 2012-10-26 | 1 | -1/+3 |
| | | | | | | | | | | | | Signed-off-by: Philip Puryear <philippuryear@gmail.com> |