Evan Martin
b3d63db1fa
switch build log to print hashes as hex
...
Nico convinced me that it's safe to do this without revving the build
log format: the old decimal values will still parse as hex (just as
different numbers) and cause a superfluous rebuild.
2012-06-19 10:31:14 -07:00
Evan Martin
350f0fc34d
add copyright header
2012-06-19 09:36:42 -07:00
Evan Martin
a21196a5a3
add new binaries to gitignore
2012-06-19 09:31:26 -07:00
Evan Martin
91b986fe22
drop support of log formats < 4
...
Log format 4 was introduced in January.
There's been plenty of time to migrate.
2012-06-18 15:59:13 -07:00
Evan Martin
b77614301e
use PRIu64 for printing 64-bit in, %d for printing int
...
Fixes a warning.
2012-06-18 15:41:28 -07:00
Evan Martin
ecf73244f7
make canon_perftest build, add license
2012-06-18 15:29:23 -07:00
Evan Martin
0d892830aa
Merge pull request #338 from syntheticpp/empty-log-file
...
no recompacting needed when log file is empty
2012-06-18 11:51:24 -07:00
Peter Kuemmel
f9abd79c75
no recompacting needed when log file is empty
2012-06-18 13:20:31 +02:00
Evan Martin
e152414a93
Merge pull request #316 from tfarina/struct
...
No need to write 'struct' before type name when declaraing variables in ...
2012-06-16 18:54:07 -07:00
Evan Martin
1a87142163
fix quoting thinko
2012-06-16 13:29:09 -07:00
Evan Martin
a08b8c8344
rearrange shell quoting in configure.py
2012-06-16 13:27:14 -07:00
Evan Martin
d064dc5881
Merge pull request #333 from jonforums/no-main-multi-defs
...
Prevent multiple definition link error
2012-06-16 10:01:45 -07:00
Jon
65f40df6f4
Prevent multiple definition link error
...
Globbed inclusion of `src/hash_collision_bench.cc` cause link errors
2012-06-16 11:52:58 -04:00
Evan Martin
4c4e7f0782
Merge pull request #331 from sgraham/add-in_newline
...
Add $in_newline
2012-06-15 15:05:57 -07:00
Evan Martin
cb8204536e
Merge pull request #330 from sgraham/win32-hash-build
...
fix windows build
2012-06-15 15:04:25 -07:00
Scott Graham
36aa519f52
improve test
2012-06-15 14:57:22 -07:00
Scott Graham
e0dd93a258
add $in_newline
2012-06-15 14:48:43 -07:00
Scott Graham
28d20bc096
fix windows build
2012-06-15 14:28:23 -07:00
Evan Martin
de275b1859
Merge pull request #329 from nico/hash2
...
Only store command hashes in the build log.
2012-06-15 13:45:37 -07:00
Nico Weber
d59e82c4a0
Add a hash collision benchmark.
2012-06-15 12:57:27 -07:00
Nico Weber
5be83d0b2e
Only store command hashes in the build log.
...
.build_log load time 350ms -> 17ms, filesize 197MB -> 1.6MB on
Mac. On Windows, it's 500ms -> 20ms.
Makes the build log a lot less useful for scripts, but there could
be a tool for use cases that need log information. A prototype of
such a tool is in https://github.com/nico/ninja/commit/1b243d311
The hash function is 64bit murmurhash2. Assuming that that different
commands get the same hash only by chance, it's is very unlikely
for two different commands to hash to the same value with a 64bit
hash.
2012-06-15 12:55:30 -07:00
Evan Martin
8f686fae94
Merge pull request #328 from nico/canonperf
...
add canon_perftest
2012-06-15 12:40:05 -07:00
Evan Martin
18ea1ffd90
allow '(' and ')' in depfile paths
...
Fixes issue #327 .
2012-06-12 15:11:22 -07:00
Evan Martin
a25309c029
add a note to HACKING about how to get gtest
2012-06-12 14:54:34 -07:00
Evan Martin
f95a246058
fix a typo in a test name
2012-06-12 14:49:40 -07:00
Evan Martin
2867bbc6e0
Merge pull request #325 from luvit/fix-path-magic
...
bootstrap: fix path magic on windows
2012-06-11 20:03:56 -07:00
Brandon Philips
b191336180
bootstrap: fix path magic on windows
...
It was reported that argv[0] doesn't get set on windows. Some research
showed that using abspath(__filename__) should accomplish this.
2012-06-11 10:19:23 -07:00
Evan Martin
4d061ac8ec
Merge pull request #323 from luvit/bootstrap-from-cwd
...
bootstrap: chdir to bootstrap's directory
2012-06-10 00:45:59 -07:00
Brandon Philips
9cd14a0ce0
bootstrap: chdir to bootstrap's directory
...
When integrating ninja into luvit I naively tried calling:
./tools/ninja/bootstrap.py
This broke because bootstrap expects you to be in the ninja directory
when you call it. This patch makes it possible to run bootstrap.py like
above and have it work.
2012-06-09 18:38:50 -07:00
Evan Martin
62d3b116bb
Merge pull request #306 from nico/winunbreakconf
...
Strip leading whitespace from commands on Windows.
2012-06-07 16:03:01 -07:00
Nico Weber
b4c27cba47
Fix configure.py on windows, which does not permit a leading space.
2012-06-04 20:26:11 -07:00
Evan Martin
54553d3f44
Merge pull request #311 from nico/cleanups
...
Cleanups
2012-06-04 10:16:39 -07:00
Nico Weber
993566a79c
add canon_perftest
2012-06-02 22:58:26 -07:00
Evan Martin
19209305c2
Merge pull request #321 from nico/diff
...
Fix a bug that caused total_time to always be -1.
2012-06-02 16:56:25 -07:00
Nico Weber
555431a676
Remove code that was never executed.
...
total_time was always -1, because it computed a pointer difference,
not a time difference (should've been |*end_time - *start_time|).
2012-06-02 16:04:57 -07:00
Evan Martin
28196d9abc
Merge pull request #320 from nico/cleanup
...
Remove unused variable last_update_millis_.
2012-06-02 10:20:09 -07:00
Evan Martin
b4412fb657
Merge pull request #319 from nico/vimp
...
Make `:set spell` only check spelling in comments. Patch from Thilo Six ...
2012-06-02 10:18:58 -07:00
Nico Weber
a2f3d6cb02
Remove unused variable last_update_millis_.
2012-06-01 13:50:39 -07:00
Nico Weber
d8d301b2ec
Make :set spell
only check spelling in comments. Patch from Thilo Six <T.Six@gmx.de>!
2012-06-01 10:59:15 -07:00
Evan Martin
3af8056f1a
Merge pull request #318 from jsternberg/master
...
Missing/unused header files
2012-05-31 21:24:11 -07:00
Jonathan Sternberg
09621aef39
Missing header file for "getenv".
2012-05-31 14:36:30 -04:00
Jonathan Sternberg
368a455ec4
Removing unused sys/termios.h header.
2012-05-30 13:27:51 -04:00
Jonathan Sternberg
2cb91b528a
Header guards were missing from some header files.
2012-05-30 13:27:46 -04:00
Thiago Farina
70789ec61c
No need to write 'struct' before type name when declaraing variables in C++.
...
Signed-off-by: Thiago Farina <tfarina@chromium.org>
2012-05-23 16:17:30 -03:00
Evan Martin
b6664431cb
Merge pull request #314 from ehird/master
...
Use subprocess.call for Python 2.4 compatibility
2012-05-23 10:56:49 -07:00
Elliott Hird
69f9707e83
Use subprocess.call for Python 2.4 compatibility
2012-05-23 14:58:49 +01:00
Evan Martin
1ff9ff485b
Merge pull request #312 from nico/vimfile
...
vim syntax file: Highlight ninja comments.
2012-05-14 22:28:45 -07:00
Nico Weber
8aebe7d32e
vim syntax file: Highlight ninja comments.
2012-05-13 21:34:58 -07:00
Nico Weber
0ad33b9198
Minor spelling fixes in manual.
2012-05-12 18:27:49 -07:00
Nico Weber
a5bf22ccdf
comment fix
2012-05-12 18:23:42 -07:00