| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This patch improves perfromance of clparser.
* Reduce the number of calling GetFullPathName.
* Use StringPiece for Split and Join.
* Add EqualsCaseInsensitive for StringPiece not to generate new string
instance.
* Add some utility member in StringPiece class.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Following functions are implemented for further performance
optimization.
* JoinStringPiece
* SplitStringPiece
* EqualsCaseInsensitiveASCII
* ToLowerASCII
To improve performance of CLParser, I will introduce above functions
into include_normalize-win32.cc.
|
|\
| |
| | |
Add clparser_perftest
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
browse: Bind to localhost by default
|
|/
|
|
|
|
|
|
|
| |
Previously the browse server would bind to "", which is translated to
0.0.0.0 (all interfaces), and then the hostname as retrieved by
socket.gethostname() was presented to the user.
The hostname is now "localhost" by default and is configurable, so the
original behavior is achieved with `ninja -t browse -a ""`.
|
|\
| |
| | |
Fix build in canon_perftest_fix
|
| |
| |
| |
| |
| | |
Tell travis to build "all" instead of just "ninja_test". This would
have caught the breakage introduced by #1181.
|
| |
| |
| |
| |
| |
| | |
unsigned int*, make the same change in canon_perftest.
Fixes "./ninja all" build.
|
|\ \
| | |
| | | |
Suppress warning 4244 to bootstrap on vs2017
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
.\src\clparser.cc(56): note: see reference to function template instantiation '_OutIt std::transform<std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,int(__cdecl *)(int)>(_InIt,_InIt,_OutIt,_Fn1)' being compiled
with
[
_OutIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,
_InIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,
_Fn1=int (__cdecl *)(int)
]
D:\bin\dev\VS\2017\BuildTools\VC\Tools\MSVC\14.10.24911\include\algorithm(946): warning C4244: '=': conversion from 'int' to 'char', possible loss of data
|
|\ \
| | |
| | | |
Fix compilation error in canon_perftest.
|
| |/
| |
| |
| | |
Introduced by 1cc730ddc27df52.
|
|\ \
| |/
|/| |
Support restat when rebuilding manifest
|
|/
|
|
|
|
|
|
| |
As a fix for #874, we started reloading the entire manifest even if the
manifest was never rebuilt due to a restat rule. But this can be slow,
so call State::Reset instead, which also fixes the original crash.
Fixes #987
|
|\
| |
| | |
Allow more path components
|
| |
| |
| |
| | |
The VS compiler complained about possible loss of data (and it was right!)
|
| |
| |
| |
| |
| |
| |
| | |
- 60 instead of 30 path components
- 64 instead of 32 backslashes in a path (windows only)
Issue: 1161
|
|\ \
| | |
| | | |
Close original pipe fd in subprocesses
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Non-console subprocesses have the write end of a pipe connected to fds
1 and 2 for stdout and stderr, but they also have the it connected to
whatever fd was assigned in the ninja process when the pipe was
created. Add a call to posix_spawn_file_actions_addclose after
the posix_spawn_file_actions_adddup2 calls to close the original fd
once it has been dup'd to stdout and stderr.
This fixes an issue seen in the Android build, where one of the
subprocesses is used to start a background helper process. The
background process attempts to close any inherited fds, but if ninja
used a very large fd number due to a high parallelism count the
background process would not close the fd and ninja would never
consider the subprocess finished.
|
|\ \
| | |
| | | |
fix broken link in hacking.md
|
|/ / |
|
|\ \
| | |
| | | |
Fix build with uclibc
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Resolves #985
This is based on musl implementation,
http://git.musl-libc.org/cgit/musl/commit/?id=20cbd607759038dca57f84ef7e7b5d44a3088574
(thanks to jbergstroem@ for reference)
|
|\ \
| | |
| | | |
replace copyright placeholder, fixes #1212
|
|/ / |
|
|\ \
| | |
| | | |
windows: replace deprecated GetVersionEx with recommended replacement
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
The recommended replacement VerifyVersionInfo should work with the same
SDKs that GetVersionEx worked with (while the wrappers in
VersionHelpers.h require a recent SDK). This patch should not change
behavior, and it's not supposed to increase build requirements. If
this makes things harder to build, please let me know.
|
|\ \
| | |
| | | |
fix a clang-cl -Wformat warning
|
| | | |
|
|\ \ \
| | | |
| | | | |
fix RELEASING wrt manual.asciidoc process
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Improve error message when a depfile contains a bad path
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Debugging "ninja: error: empty path" is not fun, so make the error
message mention the depfile name.
|
|\ \ \ \
| | | | |
| | | | | |
Use POSIX_SPAWN_USEVFORK if available
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Existing comments were alluding to it's usage and it makes building
ninja itself go a litle bit faster (i.e. taking less wall clock time).
FWIW FreeBSD even uses vfork by default c.f.
https://www.freebsd.org/cgi/man.cgi?query=posix_spawn
|
|\ \ \ \
| | | | |
| | | | | |
Update RELEASING -- manual.asciidoc no longer has a version number
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
teach -t commands to optionally print only the final command
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Only run SubprocessTest.SetWithLots on FreeBSD when ppoll() exists.
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Should fix #1189 after #1185.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix syntax error in misc/write_fake_manifests.py
|