summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* make Node::dirty_ privateEvan Martin2011-12-076-43/+49
|
* more whitespaceEvan Martin2011-12-071-0/+4
|
* merge StatCache into StateEvan Martin2011-12-075-120/+49
| | | | | | I think I had originally imagined StatCache would contain more state, but at this point it's clear it was just managing a single map, which could just as well be in the already-small State object.
* merge FileStat into NodeEvan Martin2011-12-0714-109/+119
| | | | | | 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 Martin2011-12-073-5/+14
|
* add and use getter for Edge::rule_Evan Martin2011-12-074-10/+11
|
* move build/install to READMEEvan Martin2011-12-062-24/+12
|
* Merge pull request #152 from pcc/clean-depfilesEvan Martin2011-12-062-0/+17
|\ | | | | Have the clean tool remove depfiles
| * Have the clean tool remove depfilesPeter Collingbourne2011-12-062-0/+17
| |
* | Merge pull request #151 from pcc/restat-depfilesEvan Martin2011-12-063-4/+16
|\ \ | | | | | | Use the modification time of the depfile when computing restat_mtime
| * | Use the modification time of the depfile when computing restat_mtimePeter Collingbourne2011-12-061-1/+9
| |/ | | | | | | Fixes issue #144.
| * Factor out Edge::EvaluateDepFilePeter Collingbourne2011-12-062-3/+7
|/
* more whitespace in build outputEvan Martin2011-12-051-0/+1
|
* remove reference to nonexistent fileEvan Martin2011-12-051-2/+0
|
* add help output to clean toolEvan Martin2011-12-051-10/+16
|
* prettify manual for toolsEvan Martin2011-12-051-21/+31
|
* also spell-check the 'clean' tool; abort on misspellingEvan Martin2011-12-051-2/+3
|
* minor manual touchupsEvan Martin2011-12-051-13/+15
|
* split out tool list into a separate subcommandEvan Martin2011-12-051-14/+27
| | | | | Fits the -h output on one screen again, and allows more whitespace in both the -h output and the tool list.
* disable the 'unused parameter' warningEvan Martin2011-12-059-12/+15
| | | | It was firing too often, and hadn't uncovered any bugs.
* Merge pull request #150 from luislavena/mingw-no-visibilityEvan Martin2011-12-051-0/+1
|\ | | | | visibility=hidden should not be used for Windows
| * visibility=hidden should not be used for WindowsLuis Lavena2011-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | While GCC 4.x supports the usage of -fvisibility=hidden and the related pragmas, usage of it under MinGW is a noop and should not be used. Instead, __declspec(dllexport/dllimport) should be used instead to indicate exportable functions. Since Ninja builds a static library, no functions are exported and visibility, at least under MinGW, is not an issue.
* | Merge pull request #149 from luislavena/mingw-staticEvan Martin2011-12-051-1/+1
|\ \ | |/ |/| Use g++'s -static option instead of specific libs
| * Use g++'s -static option instead of specific libsLuis Lavena2011-12-051-1/+1
|/ | | | | | | | MinGW g++ recognizes -static as option to avoid the need to specify individual libraries to be statically linked into the executable. It also solves the warning of -static-libstdc++ not being recorgnized by GCC 4.5.2 (TDM build)
* fix some minor style issues in RecomputeDirtyEvan Martin2011-12-041-11/+11
|
* when an edge is dirty, mark all outputs dirtyEvan Martin2011-12-042-12/+27
| | | | | | | | | | | | | | | The logic before was like: for each output: if edge_dirty or output.dirty: output.dirty = true edge_dirty = true This was wrong in the case where the second output would case the edge to be dirty; we needed to go back and mark the first output dirty as well. Fixed by taking two passes: one to compute the dirty state, then a latter sweep to mark all outputs. Fixes issue 148.
* refactor RecomputeOutputDirty to return true/false for dirtyEvan Martin2011-12-043-39/+38
| | | | | | | | | Rather than taking whether the edge is dirty as an input, instead only consider the arguments and return true/false, allowing the caller to decide what to do with that information. (In the restat case we were faking out the environment to get particular behavior for this.) Should have no side effects, but this is part of fixing issue 148.
* add a test case from issue 148Evan Martin2011-12-041-0/+20
|
* windows: don't buffer stdoutEvan Martin2011-12-021-0/+5
|
* HACKING: windows notesEvan Martin2011-12-021-1/+10
|
* bootstrap.sh: windows (mingw) fixesEvan Martin2011-12-021-3/+3
| | | | | | | - Don't build browse.cc in bootstrap.sh. - Explicitly call out to Python to run configure.py. - Run ninja-bootstrap with no arguments to build the default target, which is "ninja.exe" on Windows.
* configure.py: windows updatesEvan Martin2011-12-021-25/+28
| | | | | - Drop unused 'windows' platform - Make 'mingw' platform actually work on mingw-on-Windows.
* windows: clear process launch structs before using themEvan Martin2011-12-021-0/+2
|
* Revert "Merge pull request #143 from cipriancraciun/patches/python2"Evan Martin2011-11-255-5/+5
| | | | | | | This reverts commit 38ab41f45ff818b437942b753328a0168914fc86, reversing changes made to 819d6347b424f583d651b86dd1280605ddb23b88. Platforms that don't have /usr/bin/python pointing to python2 are broken.
* Merge pull request #143 from cipriancraciun/patches/python2Evan Martin2011-11-225-5/+5
|\ | | | | Rename all occurences of `python` to `python2`
| * Renamed `python` to `python2`.Ciprian Dorin, Craciun2011-11-221-1/+1
| |
| * Fixed Python 2 scripts prologue (i.e. `#!/usr/bin/env python2`).Ciprian Dorin, Craciun2011-11-224-4/+4
| |
* | Merge pull request #142 from cipriancraciun/patches/custom-cflags-ldflagsEvan Martin2011-11-221-4/+4
|\ \ | |/ |/| Added support for custom CFLAGS and LDFLAGS.
| * Added support for custom CFLAGS and LDFLAGS.Ciprian Dorin, Craciun2011-11-221-4/+4
|/
* Merge pull request #138 from polrop/fix-warning-in-testEvan Martin2011-11-213-5/+5
|\ | | | | Fix compilation warning in Ninja's test suite.
| * Fix compilation warning in Ninja's test suite.Nicolas Despres2011-11-213-5/+5
|/
* Merge pull request #136 from polrop/add-extra-warningEvan Martin2011-11-209-9/+18
|\ | | | | Add -Wextra compilation flags
| * Remove warning triggered by -Wextra on MinGW.Nicolas Despres2011-11-195-2/+11
| |
| * Add -Wextra warning flag.Nicolas Despres2011-11-196-7/+7
|/ | | | | | | Fix triggered warnings: - unused parameter - type qualifiers ignored on function return type - missing initializer for member
* Merge pull request #135 from polrop/fix-mingwEvan Martin2011-11-193-5/+4
|\ | | | | Fix mingw.
| * Fix compilation warning with getopt() on MinGW.Nicolas Despres2011-11-191-1/+1
| |
| * Fix compilation warning with getopt_long() on MinGW.Nicolas Despres2011-11-191-2/+2
| |
| * Use more portable way to get the current process ID.Nicolas Despres2011-11-191-2/+1
| | | | | | | | | | | | | | GetProcessId() is available only since Windows XP. Since MinGW define WINVER to 0x0400 which is Windows 2000 I think, we have a compilation error. Using GetCurrentProcessId() instead of GetProcessId(GetCurrentProcess()) fix this issue.
* | Merge pull request #133 from polrop/fix-duplicationEvan Martin2011-11-191-1/+1
|\ \ | |/ |/| Fix duplicated list of profilers.
| * Fix duplicated list of profilers.Nicolas Despres2011-11-191-1/+1
|/