Evan Martin
bb6da9afc1
rearrange minidump patch to match ninja code style
2012-07-27 12:18:08 -07:00
Evan Martin
9dd3f0dfdf
Merge branch 'set_terminate' of git://github.com/gmoudry/ninja into minidump
...
(This likely doesn't compile, just getting all the history in place.)
Conflicts:
src/util.cc
2012-07-27 11:44:06 -07:00
Evan Martin
f7a22e3bc9
Merge pull request #351 from syntheticpp/rate
...
print edges per second
2012-07-27 10:59:19 -07:00
Evan Martin
34fdf02dd5
make the build log test match the indended build log logic
...
As described on https://github.com/martine/ninja/pull/349 , this test
shouldn't have been passing. Fixing a Valgrind issue showed that the
test was wrong. Thankfully it wasn't a critical issue.
The new code verifies that we either succeed or report an error when
parsing -- the only behavior we really care about is not crashing.
2012-07-27 10:38:44 -07:00
Maxim Kalaev
547998bc63
Minor: zero log buffer before reading data/parsing it
...
Not a real problem, mainly to make valgrind happy
2012-07-27 10:36:28 -07:00
Evan Martin
69d94732ad
mingw: specify _WIN32_WINNT also in configure.py
2012-07-27 10:20:16 -07:00
Evan Martin
00d68972b1
fix some mingw warnings in getopt.c
...
From a patch from Claus Klein <claus.klein@arcormail.de>.
2012-07-27 10:20:16 -07:00
Evan Martin
2c7354b47d
windows: fix printf format for process id
2012-07-27 10:20:16 -07:00
Evan Martin
238b5616c5
mingw: fix quoting of -DNINJA_PYTHON
2012-07-27 10:20:16 -07:00
Evan Martin
ce7e2b2171
bootstrap: set _WIN32_WINNT to WinXP for mingw
...
From a patch from Peter Kuemmel <syntheticpp@gmx.net>.
2012-07-27 10:20:16 -07:00
Evan Martin
adadf71e8f
wrap at 80 columns
2012-07-27 10:20:15 -07:00
Evan Martin
7bf35410b7
Merge pull request #369 from maximuska/proposed/packaging-rpm
...
packaging: added basic RPM building
2012-07-27 09:45:06 -07:00
Maxim Kalaev
0cd552c0dc
packaging: added basic RPM building
2012-07-27 13:22:34 +03:00
Evan Martin
83d5629c04
Merge pull request #368 from nico/toolpipe
...
Don't print 'Entering directory' when running tools.
2012-07-25 11:02:34 -07:00
Nico Weber
a6fee5d01d
Don't print 'Entering directory' when running tools.
2012-07-25 10:34:36 -07:00
Evan Martin
0787992b99
Merge pull request #367 from tfarina/lowercase
...
Use lowercase consistently.
2012-07-23 23:55:22 -07:00
Thiago Farina
2b410db3cc
Use lowercase consistently.
...
https://github.com/martine/ninja/issues/360
Signed-off-by: Thiago Farina <tfarina@chromium.org>
2012-07-20 12:19:18 -03:00
Evan Martin
5638ca6f47
Merge pull request #366 from sgraham/no-noisy-cursor
...
windows: use WriteConsoleOutput instead of printf to avoid moving cursor
2012-07-20 00:17:44 -07:00
Scott Graham
fc554c2290
windows: use WriteConsoleOutput instead of printf to avoid moving cursor
2012-07-19 15:17:38 -07:00
Evan Martin
5dc55a3aa9
Merge pull request #365 from maximuska/proposed/dep-file-parsing-more-specials
...
dep file parsing: allow '@' and '=' in paths
2012-07-19 11:35:37 -07:00
Maxim Kalaev
73b8aa33f2
dep file parsing: allow '@' and '=' in paths
2012-07-19 09:05:59 +03:00
Evan Martin
8a37bfffcb
disallow crlf in manifest files
...
It turns out to be trickier than expected to process these correctly.
It turns out to also be trickier than expected to give a nice error
message on encountering these. But the behavior prior to this patch
would just be silent failures where we attempted to examine paths
that accidentally contained embedded \r.
For now, fix all regexes of the form [^...] to include \r in the
excluded block, then assert that we get a vague lexer error near the
problem.
In the future perhaps we can open manifest files in text mode on Windows
or just disallow Windows-style CRLF in the manual.
2012-07-17 17:38:48 -07:00
Evan Martin
42163db5ed
explain mode: show which input is more recent
...
Patch from Scott Graham <scottmg@chromium.org>.
2012-07-17 16:42:53 -07:00
Evan Martin
dc9759b530
windows: get correct path for ninja_syntax
...
Patch from Scott Graham <scottmg@chromium.org>.
2012-07-17 16:32:44 -07:00
Evan Martin
fb996074ea
gitignore unpacked gtest
...
Patch from Scott Graham <scottmg@chromium.org>.
2012-07-17 16:19:50 -07:00
Evan Martin
4bfc66b3a9
subprocess_test: make SetWithLots run on all non-Windows platforms
...
I think it might have been an oversight that this was marked
Linux-specific.
2012-07-17 16:13:39 -07:00
Evan Martin
1e2514e521
ninja_syntax: escape colons in paths
2012-07-17 13:26:21 -07:00
Evan Martin
039b662d52
Merge pull request #340 from sgraham/fix-win-build
...
fix win32 compile, fix BuildLogTest.WriteRead on 2nd run
2012-07-17 13:20:12 -07:00
Evan Martin
5d8d27c3f0
Merge pull request #363 from usovalx/subprocess_test_build_failure
...
Add missing include of <sys/resouce.h>
2012-07-17 09:31:52 -07:00
Evan Martin
183a2d8f19
fix manual to reflect reality of depfile cleaning
...
Fixes issue #362 .
2012-07-17 09:00:06 -07:00
Evan Martin
4744aa01cc
Merge pull request #364 from tfarina/pragma-once
...
Remove #pragma once from our header files.
2012-07-17 08:24:49 -07:00
Thiago Farina
520c1cff03
Remove #pragma once from our header files.
...
https://github.com/martine/ninja/issues/358
Signed-off-by: Thiago Farina <tfarina@chromium.org>
2012-07-17 11:35:46 -03:00
Oleksandr Usov
74fb2bec2a
Add missing include of <sys/resouce.h>
2012-07-16 14:05:53 +01:00
Peter Kümmel
5d120a0ae4
GCC 4.7 needs cstdio
2012-07-15 22:22:28 +02:00
Peter Kuemmel
c0c5ef9bff
print edges per second
...
prints the rate of finished edges per second to the console,
for instance with NINJA_STATUS="[%s/%t %o(%c)/s] ":
[132/1922 16.1(14)/s]
16.1 is the average for all processed files (here 132 since start)
14 is the average of the last n files while n is the number specifies by
-j (or its default)
2012-07-15 22:22:27 +02:00
Evan Martin
638b0336e9
Merge pull request #361 from HeisSpiter/master
...
Check more efficiently for emptiness
2012-07-14 17:20:30 -07:00
Pierre Schweitzer
df820cf6d4
Efficiently check for emptiness
2012-07-14 17:54:17 +02:00
Evan Martin
c7a3e306be
Merge pull request #359 from tedv/old-arch
...
Fix missing POLLRDHUP constant on older systems.
2012-07-11 14:40:28 -07:00
Ted Vessenes
9bcd0d667c
Clarify comment wording.
2012-07-11 11:33:45 -04:00
Ted Vessenes
c752864b81
Fix missing POLLRDHUP constant on older systems.
...
Attempting to compile with g++ 4.1.2 failed because the POLLRDHUP
constant was not defined when <poll.h> is included.
2012-07-11 10:56:38 -04:00
Evan Martin
b90d0387fb
Merge pull request #357 from tfarina/manifest-parser
...
Rename parsers.* to manifest_parser.*
2012-07-09 12:19:02 -07:00
Thiago Farina
3baedf1767
Rename parsers.* to manifest_parser.*
...
So it matches with the class name in there.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
2012-07-09 16:09:31 -03:00
Evan Martin
0ca93baf35
Merge pull request #313 from wolfp/restat_missing_input
...
Do not reset restat_mtime if an input is missing
2012-07-03 09:45:37 -07:00
Evan Martin
358eefbce2
Merge pull request #350 from maximuska/proposed/improve-dump-edge-node
...
Improving Edge::Dump, introducing Node::Dump
2012-06-29 09:15:09 -07:00
Maxim Kalaev
6802d5aafb
Improving Edge::Dump, introducing Node::Dump
...
- Edge::Dump could crash if called while inputs_ is being extended
- Node::Dump prints Node attributes, in-edge and lists of out-edges
- Dump functions now accept "prefix" parameter, printed along with the object
for easier orientation. For example, edge->Dump("Re-reading deps files").
2012-06-28 10:14:26 +03:00
wolfp
4a083599bb
Add a test for missing input files in restat rules
2012-06-27 10:40:28 +02:00
wolfp
ec228f1e44
Do not reset restat_mtime if an input is missing (issue #295 )
2012-06-27 10:37:37 +02:00
Scott Graham
98d1b7b718
remove unnecessary manual Close()
2012-06-19 14:32:39 -07:00
Scott Graham
dd91094196
don't leak file handle on fail-to-upgrade case
2012-06-19 14:32:04 -07:00
Scott Graham
9ef56fd56f
fix win32 compile, fix BuildLogTest.WriteRead on 2nd run
2012-06-19 13:15:41 -07:00