summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
Commit message (Collapse)AuthorAgeFilesLines
* fix order of args to CanonicalizePathScott Graham2014-11-091-2/+2
|
* remove CanonicalizePath overloads, test for toplevel behaviourScott Graham2014-11-091-2/+4
|
* Remove extra info from Usage()kwesolowski2014-07-261-3/+0
| | | | As now behavior is similar on on platforms, this can probably be removed
* Small usage info fix for windowskwesolowski2014-07-251-1/+1
|
* Fixed/improved -l N documentation For windowskwesolowski2014-07-251-1/+1
| | | | | On windows "system load" is not so obvious term, added line explaining N argument in -l N
* Merge pull request #755 from zmodem/working_dir_vs_msvc_toolNico Weber2014-06-291-8/+9
|\ | | | | Process the -C option before running RUN_AFTER_FLAGS tools.
| * Process the -C option before running RUN_AFTER_FLAGS tools.Hans Wennborg2014-05-031-8/+9
| | | | | | | | | | | | | | | | | | | | This brings the flag more inline with its description: "change to DIR before doing anything else". The use case is to make it possible to use -C together with -t msvc. When debugging Windows builds, it's handy to be able to copy-paste the commands from "ninja -v" and make them run in the correct directory by adding this flag.
* | Rename -d nowinstatcache to -d nostatcache; might become useful elsewhere (#787)Nico Weber2014-06-271-5/+5
| |
* | do not delete files from the logs that still exist on diskNico Weber2014-06-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | This is to keep the possibility of maybe having a tool that deletes old files in the future, or for having a tool which exposes this information to generators so they can do that. See https://github.com/martine/ninja/pull/697#issuecomment-37140762 and the discussion on #762. Idea from @maximuska!
* | add some statcache testsNico Weber2014-06-151-2/+2
| |
* | Free cache memory once it's no longer used.Nico Weber2014-06-151-7/+2
| | | | | | | | | | Doesn't slow down empty build times measurably, and saves some memory on non-empty builds.
* | on by defaultNico Weber2014-06-151-4/+4
| |
* | make win-onlyNico Weber2014-06-151-0/+4
| |
* | simplify more, move behind flagNico Weber2014-06-151-4/+11
| |
* | Turn on stat cache. Empty builds of chrome on my laptop 4s -> 1.3s (!)Nico Weber2014-06-151-1/+1
| |
* | Add a stat cache. Demo-quality, and disabled atm.Nico Weber2014-06-151-0/+6
| |
* | spellcheck "keeprsp" in -d optionsNico Weber2014-06-151-1/+1
| |
* | compdb: check that inputs is not emptyBen Boeckel2014-05-051-0/+2
|/
* Make BuildLogUser reference constant.Nico Weber2014-01-071-1/+1
|
* Add a comment.Nico Weber2014-01-041-0/+7
|
* Rename "IsDead" to "BuildLogUser".Nico Weber2014-01-041-3/+3
|
* Move duplicated code into a helper function.Nico Weber2014-01-041-3/+1
|
* Remove dead entries in .ninja_log and .ninja_deps while recompacting.Nico Weber2014-01-021-3/+8
| | | | | | | | | | For .ninja_deps, remove objects that have no in-edges or whose in-edges do not have a "deps" attribute. (This matches the behaviour of `-t deps`). BuildLog doesn't know about state, so let its recompact method take delegate that decides is a path is life or not, and implement it in NinjaMain.
* add -d keeprsp to preserve @rsp files on success on windowsScott Graham2013-09-101-1/+5
|
* Fix the browse tool.Tony Chang2013-07-261-2/+3
| | | | | | | ReadFlags was altering argv in real_main causing us to pass the wrong value into the NinjaMain constructor. Fix this by storing the ninja command before real_main runs.
* Merge pull request #616 from nico/recompactEvan Martin2013-07-081-4/+32
|\ | | | | Add a 'recompact' tool, which forces recompaction of the build and deps ...
| * Add a 'recompact' tool, which forces recompaction of the build and deps logs.Nico Weber2013-07-081-4/+32
| | | | | | | | This is useful for performance comparisons between two build directories.
* | Introducing tool 'deps' dumping ninja deps log entriesMaxim Kalaev2013-07-081-0/+42
|/
* Fix mingw based builds. Fixes #587Jon2013-05-251-2/+2
|
* refactor ninja main() into a struct with methodsEvan Martin2013-05-241-159/+203
| | | | | This removes the ugly Globals struct, and the ResetState() hack. This also eliminates the only goto!
* simplify some ifdefsEvan Martin2013-05-241-7/+5
|
* factor out flag parsing from enormous NinjaMain()Evan Martin2013-05-241-44/+64
|
* Merge pull request #585 from nico/fixcrashNico Weber2013-05-241-2/+2
|\ | | | | Don't use va_start() with reference parameters, it's undefined behavior.
| * Don't use va_start() with reference parameters, it's undefined behavior.Nico Weber2013-05-241-2/+2
| | | | | | | | Should fix issue #584.
* | Merge pull request #578 from pinotree/remove-path-maxEvan Martin2013-05-231-3/+7
|\ \ | | | | | | do not unconditionally use PATH_MAX with getcwd
| * | do not unconditionally use PATH_MAX with getcwdPino Toscano2013-05-211-3/+7
| |/ | | | | | | | | | | Instead, grow a buffer until getcwd either succeeds or fails with an errno different than ERANGE (meaning the passed buffer was too short to represent the actual path). Reset errno before calling getcwd to check it eventually did not fail.
* | Add error check for -j flag.Rui Ueyama2013-05-211-2/+7
|/
* Remove a few unused includes.Nico Weber2013-05-121-3/+0
|
* plumb DepsLog load through BuilderEvan Martin2013-04-081-2/+3
|
* load deps log at startupEvan Martin2013-04-081-0/+35
|
* factor out creation of build directoryEvan Martin2013-04-081-16/+21
|
* Add spell checking for debug flags.Nico Weber2013-03-271-1/+8
| | | | | | | | | | I just used `ninja -d stat` and it took me a bit to realize that I missed the trailing 's'. While here, move the message printing from printf() to Error(). This makes the output consistent with other error outputs: The messages are now prefixed with "ninja: error: " instead of just "ninja: " and they go to stderr instead of stdout.
* Merge pull request #512 from pcc/compilation-databaseEvan Martin2013-03-101-0/+45
|\ | | | | Add compdb tool
| * Add compdb toolPeter Collingbourne2013-03-101-0/+45
| | | | | | | | | | This tool helps convert Ninja build files to a compilation database of the form used by Clang tooling.
* | Bring in declaration of atoiDave Abrahams2013-03-081-0/+1
|/ | | ./bootstrap.py fails on some platforms without this include
* say where the default value for -j comes fromEvan Martin2013-02-161-1/+1
| | | | This is a FAQ.
* add syntax for checking versionsEvan Martin2013-02-161-6/+3
|
* drop the "rules" tool completelyEvan Martin2012-12-291-19/+0
| | | | | I had already broken this earlier, but the refactor of variable handling broke it completely.
* Fix clang warning.Thiago Farina2012-11-271-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-targetsEvan Martin2012-11-121-49/+51
|\ | | | | refactoring: decompose CollectTargetsFromArgs