summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* use a shell script to inline browse.pyEvan Martin2011-03-073-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 implicitEvan Martin2011-03-072-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 depfilesEvan Martin2011-03-073-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 commentsEvan Martin2011-03-061-0/+2
|
* move VirtualFileSystem into test.*Evan Martin2011-03-063-36/+49
|
* move test support into test.*Evan Martin2011-03-064-18/+40
|
* don't rely on /proc for 'browse' modeEvan Martin2011-03-051-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 fileEvan Martin2011-03-053-31/+81
|
* chdir into a temp dir before disk testsEvan Martin2011-03-051-0/+5
|
* limit output width to prevent line-wrappingEvan Martin2011-03-021-0/+12
|
* linux: simpler way to get number of processorsEvan Martin2011-03-011-10/+3
| | | | From a conversation with Anatol Pomazau <anatol@google.com>.
* print short name of command before dumping command stdout/stderrEvan Martin2011-03-011-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 DumpBacktraceEvan Martin2011-02-281-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 Martin2011-02-281-0/+14
| | | | From a patch from asmodai@in-nomine.org and dmitry@codingrobots.com.
* add copyrightsEvan Martin2011-02-0626-1/+363
|
* create builddir on start; fixes bootstrapEvan Martin2011-02-061-1/+13
|
* use -f for input file, matching makeEvan Martin2011-02-051-3/+3
|
* include command name when printing output, add newlineEvan Martin2011-02-051-6/+10
|
* fancier outputEvan Martin2011-02-052-15/+58
|
* cleanup phony testingEvan Martin2011-02-053-3/+8
|
* use builddir for log fileEvan Martin2011-02-041-3/+6
|
* ignore whitespace in makefilesEvan Martin2011-02-043-4/+22
|
* refactor parse error messagesEvan Martin2011-02-043-14/+16
|
* include path when printing a makefile parse errorEvan Martin2011-02-042-2/+5
|
* implement parallelism flagEvan Martin2011-02-011-3/+4
|
* parallelism flag, guess based on cpuinfoEvan Martin2011-02-012-7/+40
|
* move tools into a flagEvan Martin2011-01-282-22/+20
|
* move dry run info inside build logEvan Martin2011-01-232-3/+5
|
* pass config into build logEvan Martin2011-01-235-5/+13
|
* recompact log filesEvan Martin2011-01-232-8/+70
|
* allow implicit depsEvan Martin2011-01-234-5/+38
|
* refactor mainEvan Martin2011-01-231-59/+67
|
* call out ctl-c for quittingEvan Martin2011-01-231-1/+1
|
* add browser modeEvan Martin2011-01-232-1/+171
|
* Merge branch 'master' of neugierig.org:projects/git/ninjaEvan Martin2011-01-201-1/+33
|\
| * add mode for querying dependency graphEvan Martin2011-01-191-1/+33
| |
* | split some of jumble outEvan Martin2011-01-193-68/+75
|/
* add an include statementEvan Martin2011-01-153-11/+35
|
* remove vestigal builddirEvan Martin2011-01-152-3/+0
|
* remove tempnamEvan Martin2011-01-091-8/+7
|
* work around an unused variable warningEvan Martin2011-01-081-1/+2
|
* don't log commands in dry-run modeEvan Martin2011-01-081-1/+1
|
* record edge timingEvan Martin2011-01-081-13/+14
|
* remove needless virtualsEvan Martin2011-01-081-3/+3
|
* don't get stuck on phony edgesEvan Martin2011-01-081-0/+3
|
* don't track timing for phony edgesEvan Martin2011-01-081-3/+6
|
* compute edge timingEvan Martin2011-01-081-8/+28
|
* remove ResetDirtyEvan Martin2011-01-083-22/+4
|
* work around mktemp warningEvan Martin2011-01-081-2/+1
|
* move towards virtual fs for build testsEvan Martin2011-01-081-34/+67
|