Nico Weber
d2045dedc3
Merge pull request #1467 from cdluminate/master
...
Misc typo fixes by https://github.com/codespell-project/codespell/
2018-10-24 07:39:42 -07:00
Mo Zhou
33448c830b
Misc typo fixes by https://github.com/codespell-project/codespell/
2018-09-06 04:09:48 +00:00
Nico Weber
ca041d88f4
Merge pull request #1421 from moroten/revert-for-appveyor-1
...
Revert "Fix stat when subdirectory is a file"
2018-04-10 08:20:46 -04:00
Fredrik Medley
49626c3610
Revert "Fix stat when subdirectory is a file"
...
This reverts commit 6c864097ef11da366fb4070e6ab9f34d6a293766
and fixes the broken Appveyor builds on GitHub.
2018-04-09 21:46:07 +02:00
Nico Weber
265a6eaf39
rename a variable
2018-04-06 12:58:01 -04:00
Nico Weber
660d628da8
Merge pull request #1415 from nico/readident
...
Improve location of error messages around identifiers.
2018-04-06 12:53:10 -04:00
Nico Weber
001b1e3cf0
Improve location of error messages around identifiers.
...
Lexer::ReadIdent() now sets last_token_ before returning, like
Lexer::ReadEvalString() does. So all "expected identifiers" and things
that call ReadIdent (pool parser, rule parser, let parser, code parsing
the rule name after a : in a build line) now point the "^ near here" at
what was there instead of the previous last_token
According to manifest_parser_perftest, this is perf-neutral.
2018-04-06 12:45:32 -04:00
Nico Weber
cf34abf3d2
Merge pull request #1409 from atetubou/appveyor
...
Add appveyor.yml for build & test on windows
2018-04-06 09:48:15 -04:00
Nico Weber
9f38904da4
Merge pull request #1410 from ryandesign/configure.py-CXXFLAGS
...
Honor CXXFLAGS in configure.py
2018-04-06 09:14:02 -04:00
Ryan Schmidt
ccec031950
Honor CXXFLAGS in configure.py
2018-04-06 03:15:01 -05:00
Takuto Ikuta
834c674368
Add appveyor.yml
2018-04-06 17:03:03 +09:00
Nico Weber
04ba59b2ad
Merge pull request #1407 from nico/vim
...
update ninja.vim version after bff884d55
2018-04-05 15:24:18 -04:00
Nico Weber
78759d0977
update ninja.vim version after bff884d55
2018-04-05 15:23:56 -04:00
Nico Weber
03df526e07
Merge pull request #1406 from nico/dupeerr
...
make `-w dupbuild` default to `err`
2018-04-05 15:00:06 -04:00
Nico Weber
42eefc854b
make -w dupbuild
default to err
...
You can still opt out of this by passing `-w dupbuild=warn`.
But if you're getting this diagnostic, your build files are incorrect
and you should ideally just fix them.
This is step 3 on https://github.com/ninja-build/ninja/issues/931
I sent an RfC to ninja-build a few months ago; nobody objected.
2018-04-05 14:48:35 -04:00
Nico Weber
e85f5ac86b
Merge pull request #1348 from ngg/winunicode
...
Fix building on Windows in UNICODE mode
2018-04-05 14:19:05 -04:00
Nico Weber
26341ca0d6
Merge pull request #1223 from asankah/master
...
[compdb] Expand response files inline based on a switch.
2018-04-05 13:38:59 -04:00
Nico Weber
197b010341
Merge pull request #1405 from nico/showoldest
...
Fix confusing smart console output from concurrent builds
2018-04-05 13:27:55 -04:00
Nico Weber
52c1d0c8f8
Fix confusing smart console output from concurrent builds
...
Developers tend to blame the last printed line when a build takes too
long. Unfortunately, when building concurrently, the last printed line
may have actually finished a long time ago. Under the current system,
ninja does not update the status line to reflect what jobs are still
running. This change makes ninja always print the oldest still running job
instead. In other words, the likely build bottlenecks.
Patch from David Zarzycki, originally uploaded at #1320 .
2018-04-05 13:23:28 -04:00
Nico Weber
f2bb21376c
Merge pull request #1294 from bradking/plan-track-scheduling
...
Track in Plan whether wanted edges have been scheduled
2018-04-05 13:07:58 -04:00
Nico Weber
ef05d51bf9
Merge pull request #1404 from nico/c++17
...
make ninja build with -std=c++17
2018-04-05 12:26:42 -04:00
Nico Weber
dfed28c307
make ninja build with -std=c++17
...
Ninja is supposed to be able to build as C++98 so it can run on old
systems, but it should also be possible to optionally build it with
newer dialects.
2018-04-05 12:25:02 -04:00
Nico Weber
5d43e74571
Merge pull request #1361 from ppluciennik/ppluciennik/flush_log
...
Flush changes into .ninja_log right away.
2018-04-05 12:12:02 -04:00
Nico Weber
74b76d3010
Merge pull request #1365 from moroten/fix-disk-interface-tests-64-bit-timestamp
...
Fix disk_interface_test.cc on Windows for 64-bit timestamp
2018-04-05 12:10:54 -04:00
Asanka Herath
e71bcceefb
[compdb] Move declarations closer to their use.
2018-04-05 11:18:09 -04:00
Asanka Herath
b6296fbde3
[compdb] Expand response files inline based on a switch.
...
References to response files in a clang compile_commands.json file can
be tricky to deal with when tooling expects all the command flags to be
present in the 'command' field.
This change introduces a '-x' option to '-t compdb' that will expand
@rspfile style response file invocations inline.
E.g.
```sh
$ ninja -t compdb cc
[
{
"directory": "/src/foo",
"command": "cc -foo -bar @foo.obj.rsp",
"file": "foo.cc"
}
]
$ ninja -t compdb -x cc
[
{
"directory": "/src/foo",
"command": "cc -foo -bar foo.cc",
"file": "foo.cc"
}
]
```
2018-04-05 10:57:14 -04:00
Nico Weber
4494d38c59
Merge pull request #1366 from fjhenigman/clean
...
Canonicalize targets of clean command.
2018-04-05 09:15:29 -04:00
Frank Henigman
b9d3ba2f16
Canonicalize targets of clean command.
...
This corrects an inconsistency where build targets were canonicalized
but clean targets were not. For example you could build ./foo but not
clean ./foo.
2018-04-04 23:02:09 -04:00
Nico Weber
a741b119e6
Merge pull request #1386 from jmgao/exit
...
Don't clean up after ourselves when exiting.
2018-04-04 21:50:36 -04:00
Nico Weber
4fd758a81b
Merge pull request #1356 from RedBeard0531/vim_syntax
...
Improve vim syntax definition
2018-04-04 21:12:34 -04:00
Nico Weber
6bcdc7bfd1
Merge pull request #1392 from alekseyshl/master
...
Fix build on Solaris.
2018-04-04 21:08:03 -04:00
Nico Weber
f67e6fb6f6
Merge pull request #1373 from BillyDonahue/help_k_zero
...
Update Usage to show "-k 0" behavior
2018-04-04 21:06:30 -04:00
Nico Weber
1fc0e15547
Merge pull request #1381 from sgraham/output-in-compdb
...
Add 'output' field to compdb output
2018-04-04 20:58:37 -04:00
Nico Weber
6c379a3494
Merge pull request #1388 from karkhaz/kk-add-pool-to-build
...
Support pool for Writer.build() in ninja_syntax.py
2018-04-04 20:47:38 -04:00
alekseyshl
1952afa561
Fix build on Solaris.
...
Solaris also does not define struct stat's st_mtimensec field.
2018-03-05 03:13:42 -08:00
Kareem Khazem
85fab32362
Support pool for Writer.build() in ninja_syntax.py
...
ninja_syntax.py now supports a pool being specified for individual
builds, as well as rules.
2018-02-20 18:51:01 +00:00
Josh Gao
b4b283e7dc
Don't clean up after ourselves when exiting.
...
Destruction of NinjaMain can be an expensive operation when dealing
with stupidly large ninjafiles. exit directly instead of returning out
of real_main to avoid doing so.
2018-02-19 02:22:46 -08:00
Scott Graham
9a7ca218b8
Add 'output' field to compdb output
2018-02-06 21:59:16 -08:00
Billy Donahue
776b03c256
Update Usage to show "-k 0" behavior
...
For "-k N", N==0 is interpreted as infinite. It's useful but not documented in the help, unfortunately.
2018-01-12 13:31:06 -05:00
Fredrik Medley
6c864097ef
Fix stat when subdirectory is a file
...
Make sure that stat on Windows, both with and without cache, returns
"missing file" when running stat on notadir/foo where notadir is a
file.
2017-12-19 14:55:08 +01:00
Fredrik Medley
ed11516a03
Fix disk_interface_test.cc on Windows for 64-bit timestamp
...
subdir/subsubdir/.. seems to get the time of subdir/subsubdir on NTFS
(Windows 7), not the time of subdir.
2017-12-19 14:55:04 +01:00
Pawel Pluciennik
c1c8bbaa5f
Flush changes into .ninja_log right away.
2017-11-24 11:26:23 +01:00
Mathias Stearn
bff884d550
Improve vim syntax definition
...
Only highlights comments where the ninja lexer would treat them as such.
Also correctly scopes the rule- and pool-specific variables highlighting.
2017-11-09 12:00:04 -05:00
Gergely Nagy
5984986459
Fix building on Windows in UNICODE mode
2017-10-31 14:10:07 +01:00
Nico Weber
e234a7bdb6
Merge pull request #1219 from QuLogic/resolution
...
Use high-resolution timestamps
2017-10-20 13:18:16 -04:00
Nico Weber
0d9bf78663
Merge pull request #1344 from loganchien/fix-buf-overrun
...
Fix potential buffer overrun
2017-10-20 13:10:17 -04:00
Nico Weber
aa7b69bfa6
Merge pull request #1345 from refack/patch-2
...
escape usage examples
2017-10-20 13:09:35 -04:00
Refael Ackermann
251e476309
escape usage examples
2017-10-19 16:49:39 -04:00
Logan Chien
7c80007b55
Fix potential buffer overrun
...
This commit rearranges record size comparison and fread() to make sure
fread() only reads the data that can fit into the buffer.
2017-10-16 14:04:34 +08:00
Nico Weber
887eccf1fd
Merge pull request #1337 from Kulak/patch-1
...
correction of location of binary
2017-10-10 12:46:07 -04:00