| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This is generally associated with the command line being too long. Give
a hint to this case in the error message.
|
|
|
|
|
| |
The callsite might have extra context which is helpful for interpreting
the error message.
|
|
|
|
|
|
|
| |
GetFullPathName previously failed silently on long path names resulting
in uninitialized path result.
Signed-off-by: Fredrik Medley <fredrik.medley@autoliv.com>
|
|\
| |
| | |
Fix parsing some special chars in depfiles (take 2)
|
| |
| |
| |
| |
| |
| | |
This allows paths with "[", "]" and "%" to appear in depfiles.
Previously, only "[" would be handled properly.
Fixes #1227.
|
| | |
|
|/
|
| |
Fixes #1411.
|
|\
| |
| | |
Query terminal width from STDOUT_FILENO
|
| |
| |
| |
| |
| | |
Rather than 0 (stdin). So it will work even if ninja's stdin isn't connected to
the terminal for whatever reason.
|
| | |
|
|\ \
| | |
| | | |
Two fixes for NetBSD
|
| | | |
|
|\ \ \
| | | |
| | | | |
Port to AIX platform
|
| | |/
| |/|
| | |
| | | |
Taking care of printf format specifiers and large files using compiler macros in configure.py
|
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 52c1d0c8f8545231581c4d51cb0a85f50564c415.
Fixes #1418.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Flush stdout after printing "Cleaning..." message
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix testcase failure in docker environment
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In our docker environment, the normal user does not have a name.
This results in the `whoami` command to fail which expects a name to print
Replace `whoami` with `id -u`, which print print the numeric id
I have no name!@7427761b8f4c:/tmp/d$ whoami
whoami: cannot find name for user ID 1000
I have no name!@7427761b8f4c:/tmp/d$ id
uid=1000 gid=0(root) groups=0(root)
Signed-off-by: Ritesh Raj Sarraf <ritesh.sarraf@collabora.com>
|
|\ \ \ \
| | | | |
| | | | | |
Fix compilation on FreeBSD 11.2 (use st_mtim.tv_nsec)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
./src/disk_interface.cc: In member function 'virtual TimeStamp RealDiskInterface::Stat(const string&, std::__cxx11::string*) const':
./src/disk_interface.cc:216:51: error: 'struct stat' has no member named 'st_mtimensec'; did you mean 'st_mtim'?
return (int64_t)st.st_mtime * 1000000000LL + st.st_mtimensec;
^~~~~~~~~~~~
st_mtim
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
posix_spawn_* calls don't set errno, use the return value.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Silence GCC -Wimplicit-fallthrough warnings
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Borrow macro implementation from OpenSSL code.
Add the macro after each fallthrough switch case to indicate our
intention to the compiler. This silences GCC -Wimplicit-fallthrough
warnings, which is implied by GCC 7.x -Wextra.
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This reverts commit 6c864097ef11da366fb4070e6ab9f34d6a293766
and fixes the broken Appveyor builds on GitHub.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| | | | |
| | | | | |
Fix building on Windows in UNICODE mode
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
[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"
}
]
```
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Track in Plan whether wanted edges have been scheduled
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Refactor the `want_` map to track for wanted edges whether they have
been scheduled or not. This gives `ScheduleWork` a direct place to keep
this information, making the logic more robust and easier to follow. It
also future-proofs `ScheduleWork` to avoid repeat scheduling if it is
called after an edge has been removed from `ready_` by `FindWork`.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Flush changes into .ninja_log right away.
|
| | |_|/ / /
| |/| | | | |
|
|\ \ \ \ \ \
| |_|_|/ / /
|/| | | | | |
Fix disk_interface_test.cc on Windows for 64-bit timestamp
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | | |
subdir/subsubdir/.. seems to get the time of subdir/subsubdir on NTFS
(Windows 7), not the time of subdir.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This corrects an inconsistency where build targets were canonicalized
but clean targets were not. For example you could build ./foo but not
clean ./foo.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
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.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix build on Solaris.
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Solaris also does not define struct stat's st_mtimensec field.
|