summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | remove two unneeded `explicit`sNico Weber2014-12-072-3/+3
| | | |
| * | | Merge pull request #835 from rainlabs-eu/fix-cygwin-compatibilityNico Weber2014-12-041-1/+4
| |\ \ \ | | | | | | | | | | Fixed cygwin compatibility (issue #806)
| | * | | Fixed cygwin compatibility (issue #806)kwesolowski2014-10-251-1/+4
| | | | | | | | | | | | | | | | | | | | Fixed platform specific issues causing cygwin build to fail.
| * | | | Rename num_collisions to collision_count.Nico Weber2014-12-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | All other counting variables are called foo_count, not num_foos. No behavior change.
| * | | | Revert #223, fixes #874.Nico Weber2014-12-041-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No test since there's still no good way to test code in ninja.cc. Going forward, either move NinjaMain to its own file with tests, or create a system that makes it possible to run integration tests on the ninja binary. Instead, add a comment that explains why the restat optimization isn't done.
| * | | | win: Use full console width for status messages.Nico Weber2014-12-021-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original overprinting code, added in 7b3d8c8e, used printf for printing the status. printf needs one column for the cursor, so the status message could only take up `width - 1` columns. fc554c22 changed Windows from printf to WriteConsoleOutput which doesn't move the cursor, so keeping one column empty is no longer needed. So stop doing that. Also remove a duplicate call to GetConsoleScreenBufferInfo.
| * | | | win/lineprinter: Use a vector instead of manual memory management.Nico Weber2014-12-021-8/+4
| | | | | | | | | | | | | | | | | | | | No behavior change. Based on a patch from gmisocpp@gmail.com!
| * | | | win: Let the "Pause" key or Ctrl-S pause output.Nico Weber2014-12-021-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In cmd.exe, hitting the "Pause" key or Ctrl-S will pause programs until a key is pressed. This is apparently implemented when stdout is writing to, so use printf instead of Console functions to reset the cursor to the start of the line. Also happens to simplify the code. (This already worked in -v mode since that already prints using printf.) Based on a patch from gmisocpp@gmail.com!
* | | | | v1.5.3v1.5.3Nico Weber2014-11-2440-473/+1277
|\ \ \ \ \ | |/ / / /
| * | | | mark this 1.5.3.gitNico Weber2014-11-241-1/+1
| | | | |
| * | | | drop NINJA_BOOTSTRAP defineEvan Martin2014-11-182-4/+3
| | | | |
| * | | | Make sure configure.py and ninja.cc always agree on if -t browse is included.Nico Weber2014-11-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No behavior change on most platforms. On solaris, -t browse was compiled in in ninja.cc but browse.cc wasn't compiled in, which probably means that building on Solaris didn't work. It might be better now. This also makes browse.cc automatically not included in bootstrap builds; previously this was done manually through the NINJA_BOOTSTRAP check.
| * | | | Merge pull request #850 from sgraham/ocdNico Weber2014-11-123-19/+22
| |\ \ \ \ | | | | | | | | | | | | whitespace/comment/wrap fixes, no intended functionality change
| | * | | | whitespace/comment/wrap fixes, no intended functionality changeScott Graham2014-11-123-19/+22
| | | | | |
| * | | | | set *err when too many components in CanonicalizePathScott Graham2014-11-122-1/+7
| |/ / / /
| * | | | properly guard against slash_bits overflowScott Graham2014-11-122-2/+33
| | | | |
| * | | | fix not respecting lengthScott Graham2014-11-111-14/+18
| | | | |
| * | | | no need to save slash_bits, add commentScott Graham2014-11-111-9/+9
| | | | |
| * | | | save slash_bits in depslogScott Graham2014-11-111-9/+8
| | | | |
| * | | | no need to Decanonicalize on non-WindowsScott Graham2014-11-111-0/+2
| | | | |
| * | | | fix CanonicalizePath going past StringPiece length + testScott Graham2014-11-102-0/+12
| | | | |
| * | | | initialize slash_bits on non-winScott Graham2014-11-101-0/+2
| | | | |
| * | | | make all GetNode explicit, add DepsLog canonicalize testScott Graham2014-11-1011-67/+135
| | | | |
| * | | | non-win compilationScott Graham2014-11-091-0/+10
| | | | |
| * | | | improve testScott Graham2014-11-091-7/+10
| | | | |
| * | | | assert no slashes in default GetNodeScott Graham2014-11-091-0/+3
| | | | |
| * | | | fix order of args to CanonicalizePathScott Graham2014-11-099-38/+38
| | | | |
| * | | | remove CanonicalizePath overloads, test for toplevel behaviourScott Graham2014-11-0910-25/+64
| | | | |
| * | | | path decanonicalization when building commandScott Graham2014-11-084-4/+39
| | | | |
| * | | | fix multiple sequential slashesScott Graham2014-11-083-3/+18
| | | | |
| * | | | wip on adding tests at higher level, some not rightScott Graham2014-11-086-15/+76
| | | | |
| * | | | track back->forward conversions in a bitmaskScott Graham2014-11-083-6/+124
| | | | |
| * | | | Merge pull request #822 from tzik/throttleNico Weber2014-11-031-1/+3
| |\ \ \ \ | | | | | | | | | | | | Throttle the number of pending commands by the parallelism configuration
| | * | | | Throttle the number of pending commands by the parallelism configurationtzik2014-09-221-1/+3
| | |/ / /
| * | | | Merge pull request #825 from Rapptz/masterNico Weber2014-11-011-0/+4
| |\ \ \ \ | | | | | | | | | | | | Suppress warnings from building with MinGW
| | * | | | Fix unknown pragma warningsDanny2014-09-281-0/+4
| | |/ / /
| * | | | Use strchr in \ conversion in CanonicalizePath on WindowsScott Graham2014-10-301-3/+2
| | | | |
| * | | | CanonicalizePath handles \ on WindowsScott Graham2014-10-308-273/+429
| | | | |
| * | | | Update line_printer.ccppbrown2014-10-271-0/+1
| |/ / / | | | | | | | | Include POSIX termios.h
| * | | Don't print "Recompacting..." message from tests.Nico Weber2014-09-196-4/+13
| | | | | | | | | | | | | | | | Now tests don't print anything. Non-test behavior is unchanged.
| * | | Fix building tests on Windows again.Nico Weber2014-09-186-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out gtest was pulling in sys/stat.h, and we were using stat() through that in tests. This doesn't work with old MSVCs, so we should probably replace that with RealDiskInterface in a follow-up.
| * | | fix warningNico Weber2014-09-181-1/+1
| | | |
| * | | Merge pull request #812 from nico/ninjatestNico Weber2014-09-1813-67/+221
| |\ \ \ | | | | | | | | | | Use a small, standalone testing framework for ninja instead of googletest.
| | * | | Don't support ? and : for --gtest-filter, a bit simpler.Nico Weber2014-09-181-23/+11
| | | | | | | | | | | | | | | | | | | | Let me know if you use these!
| | * | | Add support for --gtest_filter. The bots need it, and it is a useful flag.Nico Weber2014-09-182-12/+99
| | | | |
| | * | | Use a small, standalone testing framework instead of googletest.Nico Weber2014-09-1813-71/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ninja currently uses googletest for testing. That makes building ninja_test somewhat annoying since it requires that one passes --with-gtest PATH to configure. It turns out just implementing the bits of googletest that ninja uses needs about the same amount of code than making the --with-gtest flag in configure.py work and making googletest print test results in a way we want (!) In addition to making configuration simpler, this also makes compiling tests much faster: On my system, touching src/build_test.cc (the slowest file to build in ninja) and rebuilding ninja_tests is twice as fast than without this patch. Building all is noticeably faster too: 5.6s with this patch, 9.1s without this patch (38% faster). The most noticeable things missing: EXPECT_* and ASSERT_* don't support streaming notes to them with operator<<, and for failing tests the lhs and rhs are not printed. That's so that this header does not have to include sstream, which slows down building ninja_test almost 20%. If this turns out to be annoying, we can maybe add it.
| * | | | Provide an error message on malformed lets. Fixes #807.Nico Weber2014-09-042-1/+10
| |/ / /
| * | | add some parens to silence a gcc warningEvan Martin2014-08-041-1/+1
| | | |
| * | | Remove extra info from Usage()kwesolowski2014-07-261-3/+0
| | | | | | | | | | | | | | | | As now behavior is similar on on platforms, this can probably be removed
| * | | Changed implementation to provide load from 0 to ProcessorCountkwesolowski2014-07-261-4/+6
| | | | | | | | | | | | | | | | This makes this implementation more consisten with POSIX load avarage.