| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
| | | | |
| | | | |
| | | | | |
`configure.py` assumes `g++` is present on the system, which is not the case, e.g. for FreeBSD.
`c++` should be used insted, which should be a link to system c++ compiler. This will be `g++` for linux, but `clang++` for FreeBSD.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Builds with both GCC and Clang and runs clang-tidy, too.
|
| | | | | |
|
|\ \ \ \ \
| |/ / / / |
|
| | | | | |
|
| |\ \ \ \
| | |/ / /
| |/| | | |
Delay actually opening log files until the first write, fix #1724
|
| | | |/
| | |/|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Calling DepsLog/BuildLog::OpenForWrite will now only save the file path.
The actual opening of the file (moved to OpenForWriteIfNeeded) happens
right before the first write attempt.
This is needed so that the files aren't held open when the generator
runs (i.e. RebuildManifest) as it may call tools like recompact which
won't be able to open the file on Windows.
The disadvantage is that now the error reporting happens at a later time
and will be reported as a failed write, not a failed open.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
CMAKE_SOURCE_DIR refer to the full path to the top level of the current
CMake source tree
PROJECT_SOURCE_DIR refer to the source directory of the last call to the
project() command made in the current directory scope or one of its parents
when ninja is use as a subproject, the build fail because of this.
|
| | | | |
|
| |\ \ \
| | | | |
| | | | | |
Include sys/select.h in subprocess-posix.cc
|
| | | |/
| | |/|
| | | |
| | | |
| | | | |
pselect() is in sys/select.h in "newer" (2001) versions of posix, so add an include for it.
While here, only include poll.h if USE_PPOLL is defined.
|
| |\ \ \
| | |/ /
| |/| | |
Include unistd.h in disk_interface.cc
|
| |/ /
| | |
| | |
| | | |
stat() needs unistd.h in addition to sys/stat.h and sys/types.h per POSIX.
At least one (hobby) OS does need unistd.h, so add an include for it.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Found with readability-container-size-empty
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
| | |
| | |
| | |
| | |
| | | |
Found with readability-redundant-string-cstr
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
| | | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Added ability to parse escaped colons in GCC Dep files enabling ninja to parse dep files of GCC 10 on Windows
* Added generated depfile_parser.cc
* Addressed formatting
* Added extra tests with real world examples of paths produced by both GCC 10 and Clang and GCC pre 10. Adjusted one test so it doesn't fail
* Adjusted regular expression to not match \: if the character following the : is either EOF or whitespace
* Fixed typo in regex (should be 0x20 for space not 0xa)
* Changed regular expression form using lookahead to instead matching a separate expression. This was needed as re2c pre version 1.17 is broken when using lookaheads. Also added tests for \: followed by whitespace
* Addressed formatting
* Forgot a missing std::
* Fixed formatting for spaces after , as well as respecting column width
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
MSVC also used the custom implementation, since the function isn't a
macro and therefore
#ifndef _mktemp_s
didn't work as intended.
|
| | |
|
| |\
| | |
| | | |
test: skip non-Windows tests if on Windows
|
| |/ |
|
| | |
|
| |\
| | |
| | | |
macOS workflow: specify the minimum version of macOS supported
|
| |/ |
|
| |\
| | |
| | | |
Null terminate the out2 string passed as filter2 to log.Restat
|
| |/ |
|
| | |
|
| |\
| | |
| | | |
enable Intel, IBM XL, and PGI compilers without header/source changes
|
| |/ |
|
| |\
| | |
| | | |
Improve error messages when ninja commands fail on Windows.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When a call to the Win32 API CreateProcessA fails, ninja
now outputs the exact command string that caused it to fail.
It also detects when the command contained leading whitespace
and outputs a hint that lets the user know why the command
failed.
|
| |\ \
| | | |
| | | | |
Replace references to README with README.md
|
| |/ /
| | |
| | |
| | |
| | | |
The README file was renamed to README.md in commit
a37da20ae74c81703b1c811182fc154d95ed46fe.
|
| |\ \
| | | |
| | | | |
CMake: modernize
|
| | | | |
|
| |/ /
| | |
| | |
| | |
| | | |
cmake_minimum_required(VERSION 3.15) implicitly sets to NEW all
policies from CMP0094 and older
|
| |\ \
| | | |
| | | | |
browse.py: use html.escape for python3
|
| | | |
| | | |
| | | |
| | | |
| | | | |
fixes #1741
fixes #1736
|
| |\ \ \
| | |/ /
| |/| | |
CI: update CMake use
|
| | | | |
|
| |/ / |
|
| |\ \
| | | |
| | | | |
Add install target to CMake build
|
| |/ / |
|
| |\ \
| | | |
| | | | |
fix typo
|
| |/ / |
|