| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
CMakeLists: Fix ppoll() feature detection.
|
|/
|
|
|
|
|
|
| |
Use check_cxx_symbol_exists() instead of check_symbol_exists()
for the subtle reason explained in the comment added in this
patch.
Change-Id: Id949b8f2c7af39eeef3a848d3bdbc7639432f38a
|
|\
| |
| | |
emacs: improve ninja-mode
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We default `ninja-indent-offset` to `2` because Meson and CMake use `1`
and `2` values accordingly, but `1` seems like too little, so use `2`.
The correctness was tested in particular on two `build.ninja` files,
one generated by Meson (1790 lines), and another by CMake (7777
lines). After setting `ninja-indent-offset` to the expected by the
file value and re-indenting whole file the buffer was left unchanged,
i.e. the calculated offset matched the ones already used.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The code previously did not take into account that between the name
and assignment may be any number of space including no space at all.
It was also incorrectly highlighting in a code like
foo = bar = buzz
the `bar` as a variable, even though the `bar = buzz` is just a text
that gets assigned to `foo`, i.e. `bar` is not a variable. Fix that.
|
|\ \
| | |
| | | |
Fix formatting for `msvc` tool documentation
|
| |/ |
|
|\ \
| | |
| | | |
Enable ppoll() usage when available.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch modifies the CMakeLists.txt file to probe for
ppoll() on the target system, and define -DUSE_PPOLL=1 if
it is available.
This can be disabled by setting -DNINJA_FORCE_PSELECT=ON
when invoking CMake.
This matches the default behavior of the configure.py
script (and its `--force-pselect` option). Note that
there is no noticeable performance difference before
build commands are launched, so this
change is very hard to benchmark properly.
Fix for https://github.com/ninja-build/ninja/issues/1821
|
|/
|
|
|
|
|
|
|
|
|
| |
* Increment ninjg_log version
* fix test
* remove code for ninjg_log version 4
* line length
* split error messages
|
|
|
|
|
|
|
|
|
| |
* Clean up Windows workflow, add support for x86
* Sensible naming for artifacts
No suffix for the x64 version, as that was the default already.
* Remove x86 build from Windows workflow
|
|\
| |
| | |
CI:macos package with macos 12 for macos >= 10.15
|
| |
| |
| |
| |
| | |
when this parameter was added, it was also for the last version
that recently went end of life
|
|\ \
| |/
|/| |
Fix typos in docs
|
|/ |
|
|\
| |
| | |
Remove auto_ptr
|
|/
|
|
| |
C++11 is now a hard requirement.
|
|
|
|
|
| |
We already did this in some, this converts the rest.
Also chmod +x on write_fake_manifests.py while here.
|
|\
| |
| | |
Flush output after each line
|
| |
| |
| |
| | |
The output is not flushed automatically after \n, at least on Windows 10.
|
|\ \
| | |
| | | |
Add longPathAware manifest to enable long paths on Windows
|
| | |
| | |
| | |
| | | |
Fixes: #1900
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
* Add overridable parameter for name of Python binary
On macOS, python is not an available command any more. python3 is.
* Use option() as requested
* Store variable in different way
|
|\ \
| | |
| | | |
Handle ERROR_DIRECTORY when calling FindFirstFileExA
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If a directory referenced by .ninja_deps has changed to a regular file
since the last build, FindFirstFileExA will return ERROR_DIRECTORY.
Fixes #2159
|
|\ \ \
| | | |
| | | | |
Add build job for Windows Arm64
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Make ScopedMetric portable, accurate, and efficient
|
| | | | |
|
| | | | |
|
| |\ \ \
| |/ / /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | | |
Detect whether VC++ compiler can be found in configure.py
|
| |\ \ \ \ |
|
| | | | | | |
|
| |\ \ \ \ \ |
|
| |\ \ \ \ \ \ |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
The first experience for most developers who start working on ninja is
this cryptic error message:
bootstrapping ninja...
Traceback (most recent call last):
File "configure.py", line 329, in <module>
if platform.msvc_needs_fs():
File "configure.py", line 89, in msvc_needs_fs
stderr=subprocess.PIPE)
File "python\bin\lib\subprocess.py", line 394, in __init__
errread, errwrite)
File "python\bin\lib\subprocess.py", line 644, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
This message happens when bootstrap.py first tries to invoke cl.exe and
it cannot be found. This change looks for cl.exe and warns if it is not
in the user's path, leading to this friendlier message:
bootstrapping ninja...
Traceback (most recent call last):
File "configure.py", line 317, in <module>
raise Exception('cl.exe not found. Run again from the Developer Command Prompt for VS')
Exception: cl.exe not found. Run again from the Developer Command Prompt for VS
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Add build job for Linux ARM64
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
support 32bit system like i386 (#829)
|
| |/ / / / / / / / |
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
Remove requirement for Google copyright from CONTRIBUTING
|
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
We should keep the Google copyright on files authored by people at Google,
but for new files added by people not at Google, this really isn't necessary.
(Someone from open-source compliance at Google reached out to me and
suggested removing this line.)
|
|\ \ \ \ \ \ \ \ \ \
| |_|/ / / / / / / /
|/| | | | | | | | | |
Increase version check of re2c to 0.15.3
|
|/ / / / / / / / /
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
The `--no-version` command line argument was introduced with re2c
v0.15.3.
See https://re2c.org/releases/changelog/changelog.html
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
Add --quiet flag to zsh completion
|
|/ / / / / / / / / |
|
| | | | | | | | | |
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
Avoid shadowing `time_millis_`, the field of `StatusPrinter`
|
| | | | | | | | | | |
|