Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | graph: Report errors if a target does not exist. | Nicolas Despres | 2011-04-26 | 1 | -3/+11 | |
| | | ||||||
| * | Do not always require a target when a tool is run. | Nicolas Despres | 2011-04-26 | 1 | -1/+9 | |
| | | | | | | | | Adjust tools options parser and documentation. | |||||
| * | Remove no longer used current working directory. | Nicolas Despres | 2011-04-26 | 1 | -7/+0 | |
| | | | | | | | | | | It has been introduced by 761a3c when ManifestParser::set_root() existed. It is no longer the case so we can save some time querying it now. | |||||
| * | Document. | Nicolas Despres | 2011-04-26 | 1 | -0/+2 | |
| | | ||||||
| * | Remove useless inclusion of stdio.h. | Nicolas Despres | 2011-04-26 | 1 | -2/+0 | |
| | | ||||||
| * | Use Error() to report error. | Nicolas Despres | 2011-04-26 | 1 | -4/+5 | |
| | | | | | | | | | | This way we get the error message prefixed by the program name. It helps while debugging. | |||||
| * | Prefix perror(3) messages with program name. | Nicolas Despres | 2011-04-26 | 4 | -8/+8 | |
| | | | | | | | | | | | | It make it easier while debugging to know who is reporting the error: Ninja itself or one of the command called by Ninja during the build process or one of the generator which called Ninja. | |||||
* | | include location of error in parse error messages in EvalEnv strings | Alexei Svitkine | 2011-04-26 | 6 | -8/+62 | |
|/ | | | | | E.g. when parsing "foo = ${bar", point at the correct location of the missing curly brace. | |||||
* | don't close null log files | Evan Martin | 2011-04-25 | 1 | -1/+2 | |
| | ||||||
* | Close() and unlink() files in ways that make Windows happy | Philip Craig | 2011-04-23 | 1 | -0/+7 | |
| | | | | | This will make the build log compaction work on Windows. It will also make the tests no longer leave a temp log file around. | |||||
* | [windows] disable smart terminal support | Sergey Nenakhov | 2011-04-23 | 1 | -2/+10 | |
| | ||||||
* | [windows] disable browse tool on Windows for now | Sergey Nenakhov | 2011-04-23 | 1 | -0/+4 | |
| | ||||||
* | [windows] use local getopt.h | Sergey Nenakhov | 2011-04-23 | 1 | -0/+4 | |
| | ||||||
* | [windows] get processor count using Windows API | Sergey Nenakhov | 2011-04-23 | 1 | -0/+4 | |
| | ||||||
* | [windows] extend hash_map.h for Windows hash_map | Sergey Nenakhov | 2011-04-23 | 1 | -0/+9 | |
| | ||||||
* | [windows] fix class/struct confusion | Sergey Nenakhov | 2011-04-23 | 1 | -1/+1 | |
| | ||||||
* | [win] check in public-domain getopt implementation | Evan Martin | 2011-04-23 | 2 | -0/+463 | |
| | ||||||
* | use kMaxPathComponents in proper place | Evan Martin | 2011-04-23 | 1 | -1/+1 | |
| | ||||||
* | optimize CanonicalizePath | Evan Martin | 2011-04-23 | 2 | -35/+71 | |
| | | | | | | | | | Null build of Chrome: before I added extra calls to CanonicalizePath: 1.25s. with extra calls to CanonicalizePath: 1.35s. with new CanonicalizePath: 1.05s. And now CanonicalizePath isn't hot on profiles anymore. | |||||
* | canonicalize paths on the command-line as they're used | Evan Martin | 2011-04-22 | 1 | -1/+6 | |
| | | | | | | | | | | | | | | I'm not entirely happy with my solution. I think Ninja should always use canonicalized paths internally, so we should canonicalize all paths as we receive them (from the command line and from build files). But there are other places where we pass paths around (like in all the tool commands) and I don't want to add manual calls to canonicalize in each. Perhaps the longer-term solution is to add some sort of GetNodeCanonicalize() to State and then make all of the functions that work with paths as strings (like Builder::AddTarget or RunBrowsePython) instead only accept a Node*. | |||||
* | use util's CanonicalizePath in parsers as well | Evan Martin | 2011-04-22 | 2 | -14/+17 | |
| | ||||||
* | handle foo//bar in CanonicalizePath | Evan Martin | 2011-04-22 | 2 | -2/+9 | |
| | ||||||
* | Merge branch 'term-fix' of https://github.com/SByer/ninja | Evan Martin | 2011-04-18 | 1 | -3/+5 | |
|\ | ||||||
| * | Fix an exception when terminal is narrow or set for unlimited width | Scott Byer | 2011-04-07 | 1 | -3/+5 | |
| | | ||||||
* | | Merge branch 'master' of github.com:martine/ninja | Evan Martin | 2011-04-15 | 8 | -11/+44 | |
|\ \ | |/ | | | | | | | | | Conflicts: src/util.cc src/util.h | |||||
| * | Add missing CPP guards. | Nicolas Despres | 2011-03-22 | 5 | -0/+25 | |
| | | ||||||
| * | Prefix error messages with program name. | Nicolas Despres | 2011-03-21 | 3 | -10/+23 | |
| | | | | | | | | | | | | It make it easier while debugging to know who is reporting the error: Ninja itself or one of the command called by Ninja during the build process or one of the generator which called Ninja. | |||||
| * | src/inline.sh: fix typo | IWATSUKI Hiroyuki | 2011-03-14 | 1 | -1/+1 | |
| | | | | | | | | I (Evan) got this wrong in the previous commit. | |||||
| * | inline.sh: BSD / OS X fixes | IWATSUKI Hiroyuki | 2011-03-13 | 1 | -1/+1 | |
| | | ||||||
* | | Remove the declaration of DumpBacktrace. | Thiago Farina | 2011-04-15 | 1 | -5/+0 | |
| | | | | | | | | This function was removed on 01880fb3a2a13f9071e9729c3a13752846828ed2. | |||||
* | | Move CanonicalizePath into util.h so it can be shared by the other modules. | Thiago Farina | 2011-04-15 | 6 | -89/+116 | |
|/ | | | | | | Also add util_test.cc and move the CanonicalizePathTest into there. Signed-off-by: Thiago Farina <tfarina@chromium.org> | |||||
* | fix test that relied on pointer values | Evan Martin | 2011-03-12 | 1 | -2/+7 | |
| | ||||||
* | make bad build tests fail earlier | Evan Martin | 2011-03-12 | 1 | -0/+1 | |
| | ||||||
* | move the implementation of GraphViz to source file | Thiago Farina | 2011-03-07 | 3 | -56/+79 | |
| | ||||||
* | inline.sh: rewrite for better portability | Evan Martin | 2011-03-07 | 1 | -5/+1 | |
| | ||||||
* | handle variable expansion with upper-case characters | Orestis Agathokleous | 2011-03-07 | 2 | -1/+14 | |
| | ||||||
* | use a shell script to inline browse.py | Evan Martin | 2011-03-07 | 3 | -15/+35 | |
| | | | | | | | | | Relying on the inline-assembly trick was cute but it didn't work on other platforms; relying on xxd will make us depend on xxd being available. Instead, inline browse.py into a header using a shell script. (Making this work required fixing multiple bugs in ninja...) | |||||
* | files that have both implicit and explicit edges should be implicit | Evan Martin | 2011-03-07 | 2 | -11/+27 | |
| | | | | | | | This is just deleting some code that was written in anticipation of staying memory-resident; when loading a depfile, we don't need to attempt to update existing entries in the dependency list, we just need to blindly add them. | |||||
* | canonicalize paths loaded from depfiles | Evan Martin | 2011-03-07 | 3 | -1/+151 | |
| | | | | | | | | | If a C file #includes "../foo.cc", then gcc will emit paths like "bar/../foo.cc" into the dependency file; canonicalize these when we load the file. Add a test module for testing the graph dirty recomputation directly, without all the build classes around it. | |||||
* | more comments | Evan Martin | 2011-03-06 | 1 | -0/+2 | |
| | ||||||
* | move VirtualFileSystem into test.* | Evan Martin | 2011-03-06 | 3 | -36/+49 | |
| | ||||||
* | move test support into test.* | Evan Martin | 2011-03-06 | 4 | -18/+40 | |
| | ||||||
* | don't rely on /proc for 'browse' mode | Evan Martin | 2011-03-05 | 1 | -16/+38 | |
| | | | | | | | | | Instead, pass the script code via stdin. We end up with a zombie (the child process that passes the script code) because we can't ignore SIGCHLD in the parent (the Python code relies on being able to wait for children), but the zombie dies with the outer process. This probably could be avoided by double-forking or other approaches, but it doesn't seem worth the effort. | |||||
* | factor browse out into its own file | Evan Martin | 2011-03-05 | 3 | -31/+81 | |
| | ||||||
* | chdir into a temp dir before disk tests | Evan Martin | 2011-03-05 | 1 | -0/+5 | |
| | ||||||
* | limit output width to prevent line-wrapping | Evan Martin | 2011-03-02 | 1 | -0/+12 | |
| | ||||||
* | linux: simpler way to get number of processors | Evan Martin | 2011-03-01 | 1 | -10/+3 | |
| | | | | From a conversation with Anatol Pomazau <anatol@google.com>. | |||||
* | print short name of command before dumping command stdout/stderr | Evan Martin | 2011-03-01 | 1 | -6/+15 | |
| | | | | | | Previously we showed the full command line, but with this change we only show the full command line in verbose mode or when the command fails. | |||||
* | drop DumpBacktrace | Evan Martin | 2011-02-28 | 1 | -9/+0 | |
| | | | | It wasn't that helpful; simplifies other platforms to just not use it. | |||||
* | get the number of CPUs on FreeBSD and OS X via sysctl() | Evan Martin | 2011-02-28 | 1 | -0/+14 | |
| | | | | From a patch from asmodai@in-nomine.org and dmitry@codingrobots.com. |