summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| * refactoring: decompose CollectTargetsFromArgsMaxim Kalaev2012-11-091-49/+51
| |
* | Merge pull request #443 from tfarina/disk-interface-allocEvan Martin2012-11-121-1/+1
|\ \ | | | | | | Allocate disk_interface near where it's needed.
| * | Allocate disk_interface near where it's needed.Thiago Farina2012-10-101-1/+1
| | | | | | | | | | | | | | | | | | This avoids allocating disk_interface unnecessarily. Signed-off-by: Thiago Farina <tfarina@chromium.org>
* | | Merge pull request #458 from rgeary1/minorEvan Martin2012-11-091-0/+3
|\ \ \ | |_|/ |/| | 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-cRichard Geary2012-11-091-0/+3
| | | | | | | | | | | | Change-Id: I7be958e18eb2e434e78afb6e03b332281a651957
* | | Add missing 'virtual' annotation to ReadFile() override.Thiago Farina2012-10-171-1/+1
| |/ |/| | | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* | Don't say -h is invalid whereas it is supported.Nicolas Despres2012-09-271-1/+1
| | | | | | | | | | | | | | getopt_long(3) was reporting "ninja: invalid option -- h" when "ninja -h" was called. Regression most probably introduced by 5fdb12ed5cec4e1c853c64026142d088ff5519e1
* | Give MinGW builds MSVC build helper superpowersJon2012-09-201-2/+2
| | | | | | | | | | | | Note: _WIN32 is used instead of WIN32 to enable builds with MSVC IDE, Windows SDK non-IDE command line tools, and mingw/mingw-w64 based toolchains
* | Clean up getopt_long call.Nico Weber2012-09-141-12/+12
|/ | | | | | Remove now-unimplemented 'V' from getopt_long. Remove 'h', since it's included in the long options. Order switch cases in the same order as in the getopt_long argument.
* mark msvc-helper as experimentalEvan Martin2012-09-131-1/+1
|
* windows: merge msvc-helper into ninja.exe itselfEvan Martin2012-09-131-0/+17
| | | | | | Now "ninja -t msvc ..." passes the "..." to the msvc helper main. This drastically simplifies bootstrap and makes ninja a single binary again.
* drop special case for msvc bucket countEvan Martin2012-09-071-6/+1
| | | | | Calling bucket_count() works locally with MSVC. I wonder if some other change in the code fixed this.
* allow tools to specify when they run (before/after build.ninja load)Evan Martin2012-09-061-34/+52
| | | | | This will be necessary to inline msvc-helper as well as so -t graph can get depfiles.
* factor out metrics dump from ninja mainEvan Martin2012-09-051-14/+18
|
* factor out build log load from mainEvan Martin2012-09-051-28/+37
|
* rearrange tool-picking logicEvan Martin2012-09-051-18/+37
| | | | Now "ninja -t list" works from any directory.
* reduce indentEvan Martin2012-09-041-39/+38
|
* move BuildConfig out of globalsEvan Martin2012-09-041-14/+15
|
* remove DiskInterface from globalsEvan Martin2012-09-041-5/+4
|
* move BuildLog to DependencyScanEvan Martin2012-09-041-3/+3
| | | | | | | The build log is needed in computing whether an edge is dirty, so I think it belongs here. (It's a bit weird that Builder needs to reach into it to record completed commands, maybe it will become cleaner with more thought.)
* pass Builder as arg to build-running functionsEvan Martin2012-09-041-15/+15
| | | | Reducing use of globals.
* remove config from BuildLog, rename membersEvan Martin2012-09-021-4/+5
|
* make it more explicit that a bad build log causes us to rebuildEvan Martin2012-08-171-0/+5
| | | | | (Committing this on top of b56fe80 since they're related, but I may end up reverting both.)
* rename -V to --version and clean up --help outputEvan Martin2012-08-131-9/+8
|
* fix windows buildEvan Martin2012-08-081-1/+1
|
* use DiskInterface to create the build directoryEvan Martin2012-08-071-8/+11
| | | | | | | | | | 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.
* use chdir() define from util.hEvan Martin2012-07-281-4/+0
|
* move processor-count code to util.ccEvan Martin2012-07-281-25/+1
|
* note that -l doesn't work on windowsEvan Martin2012-07-281-0/+3
| | | | Filed issue #386 about it too.
* also build with msvcPeter Kümmel2012-07-271-1/+5
|