summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* update old test to cover newer rule attributesEvan Martin2012-08-241-1/+4
|
* add test that checks attributes on rulesEvan Martin2012-08-241-0/+11
|
* fix test broken in 697350dEvan Martin2012-08-171-2/+10
| | | | That's what I get for making last-second adjustments before checking in!
* make it more explicit that a bad build log causes us to rebuildEvan Martin2012-08-173-4/+12
| | | | | (Committing this on top of b56fe80 since they're related, but I may end up reverting both.)
* Merge pull request #401 from syntheticpp/win-network-pathEvan Martin2012-08-172-0/+27
|\ | | | | on windows a network path starts with two backslashes
| * on windows a network path starts with two backslashesPeter Kuemmel2012-08-172-0/+27
| |
* | if a file is missing in the log, count it as dirtyScott Graham2012-08-152-6/+63
| | | | | | | | | | | | | | 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).
* | add a helper binary for wrapping cl.exeEvan Martin2012-08-151-0/+115
| | | | | | | | Modify bootstrap etc. to make use of this binary.
* | pass env block to cl helperEvan Martin2012-08-153-1/+17
| |
* | Merge branch 'master' of github.com:martine/ninjaEvan Martin2012-08-139-9/+542
|\ \
| * | msvc helper: drop system includesEvan Martin2012-08-123-3/+30
| | | | | | | | | | | | | | | Drop any #includes that look like they're referencing system headers. This reduces the dependency information considerably.
| * | includes_normalize: also lowercase cross-drive includesEvan Martin2012-08-123-10/+9
| | | | | | | | | | | | It seems to me inconsistent to normalize one but not the other.
| * | add functions for normalizing win32 include pathsScott Graham2012-08-123-0/+249
| | | | | | | | | | | | | | | | | | | | | (Note from Evan: this is landing Scott's code more or less verbatim without a lot of analysis; it could maybe be simplified and reduced, but it's only intended to be used in the MSVC helper so it's fine to be experimental.)
| * | msvc helper: attempt to filter out when it prints the input filenameEvan Martin2012-08-123-0/+47
| | | | | | | | | | | | This is a heuristic but it appears to work for the Chrome build.
| * | add subprocess-spawning to msvc_helperEvan Martin2012-08-123-1/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than using subprocess.h, reimplement the subprocess code. This allows: 1) using anonymous (instead of named) pipes 2) not using all the completion port craziness 3) printing the output as it happens 4) further variation, like adjusting the environment (in a forthcoming change) without affecting the main subprocess code
| * | move Win32Fatal into utilEvan Martin2012-08-123-8/+7
| | |
| * | add a module for working with MSVC (cl.exe) behaviorEvan Martin2012-08-123-0/+96
| | | | | | | | | | | | This will be needed for performant builds on Windows.
| * | doc that ReadFile reads in text mode on WindowsEvan Martin2012-08-121-1/+2
| | |
* | | rename -V to --version and clean up --help outputEvan Martin2012-08-131-9/+8
|/ /
* | windows: fix integer truncation issues for helper binariesEvan Martin2012-08-103-6/+11
| | | | | | | | | | Disable the size_t truncation warning. (Note that this leaves on the other truncation-related warnings, like int->char.)
* | windows: fix size_t<->int conversions in ninja.exeEvan Martin2012-08-1010-23/+23
|/
* fix windows buildEvan Martin2012-08-081-1/+1
|
* use DiskInterface to create the build directoryEvan Martin2012-08-077-34/+31
| | | | | | | | | | Fixes issue #392 (didn't handle creating nested build dirs right). Moves MakeDir out of util.h; all code should go through DiskInterface to simplify testing. Moves ownership of the DiskInterface into the client of the Builder, which also allows removing some code that reached inside the object as well as a minor leak.
* Include unistd.h in files that use unlink() on OS X.Nico Weber2012-08-052-3/+5
| | | | | | | | `man unlink` says this is necessary, and according to a report by Claus Klein, omitting them breaks the build on OS X 10.5 with gcc 4.7 (see issue #396). (On Windows, ninja's util.h includes a define for unlink.)
* reject tabs (and CRs) in input files more aggressivelyEvan Martin2012-08-026-41/+57
|
* Merge branch 'master' of github.com:martine/ninjaEvan Martin2012-08-011-3/+3
|\
| * fix hash_map StringPiece comparatorScott Graham2012-07-311-3/+3
| |
* | Merge branch 'factor-elide-middle' of git://github.com/polrop/ninjaEvan Martin2012-08-014-13/+29
|\ \ | |/ |/| | | | | Conflicts: src/util.cc
| * Re-factor elide code and test it.Nicolas Despres2012-07-314-13/+30
| |
* | use chdir() define from util.hEvan Martin2012-07-281-4/+0
| |
* | move processor-count code to util.ccEvan Martin2012-07-283-25/+35
| |
* | note that -l doesn't work on windowsEvan Martin2012-07-282-0/+4
| | | | | | | | Filed issue #386 about it too.
* | simplify load-average codeEvan Martin2012-07-281-15/+3
| |
* | delete vestigal declarationsEvan Martin2012-07-281-7/+0
| |
* | Disable SubprocessTest.TestWithLots on OS X.Nico Weber2012-07-281-2/+4
| | | | | | | | It fails on OS X, see issue #384.
* | Revert "Make StringPiece data members private."Nico Weber2012-07-288-19/+14
| | | | | | | | | | | | This reverts commit 904c9610fe66c4f4bd63a07d6f057c8603d24394. The commit caused issue #380, this revert fixes it. The revert also makes the test from the previous commit pass.
* | Add a regression test for issue #380 (which fails at the moment)Nico Weber2012-07-281-0/+19
|/
* also build with msvcPeter Kümmel2012-07-273-5/+10
|
* fix a warning and leak in windows-specific console output codeEvan Martin2012-07-271-2/+2
|
* fix error and prevent warning in GetTimeMillis()Claus Klein2012-07-272-2/+2
|
* Merge branch 'master' of github.com:martine/ninjaEvan Martin2012-07-278-14/+19
|\
| * Merge pull request #352 from tfarina/string-piece-privateEvan Martin2012-07-278-14/+19
| |\ | | | | | | Make StringPiece data members private.
| | * Make StringPiece data members private.Thiago Farina2012-06-308-14/+19
| | | | | | | | | | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* | | rename subprocess.cc to reflex its posixnessEvan Martin2012-07-271-0/+0
| | |
* | | rearrange minidump patch to match ninja code styleEvan Martin2012-07-273-113/+132
| | |
* | | Merge branch 'set_terminate' of git://github.com/gmoudry/ninja into minidumpEvan Martin2012-07-273-0/+121
|\ \ \ | |/ / |/| | | | | | | | | | | | | | (This likely doesn't compile, just getting all the history in place.) Conflicts: src/util.cc
| * | Changed #ifdef _WIN32 to #ifdef _MSC_VER to make sure that MinGW compiles ↵Jiri Moudry2012-04-262-3/+3
| | | | | | | | | | | | happily
| * | Improve handling of fatal errors on Windows, support creation of minidumpsJiri Moudry2012-03-283-0/+120
| | |
* | | Merge pull request #351 from syntheticpp/rateEvan Martin2012-07-279-17/+101
|\ \ \ | | | | | | | | print edges per second
| * | | GCC 4.7 needs cstdioPeter Kümmel2012-07-151-1/+1
| | | |