summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | Merge branch 'master' into compiler_detectJan Niklas Hasse2022-08-2224-194/+819
| | |\ \ \ \ \ \ \ \
| | * | | | | | | | | Fix function and parameter names, and commentBruce Dawson2022-03-091-4/+4
| | | | | | | | | | |
| | * | | | | | | | | Merge branch 'ninja-build:master' into compiler_detectBruce Dawson2022-02-171-11/+0
| | |\ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ Merge branch 'ninja-build:master' into compiler_detectBruce Dawson2022-02-1735-222/+1141
| | |\ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | Improve error messages when VS cannot be foundBruce Dawson2021-07-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | | | | | | | | Merge pull request #2201 from martin-g/release-linux-aarch64Jan Niklas Hasse2022-10-231-0/+60
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add build job for Linux ARM64
| | * | | | | | | | | | | | Add build job for Linux ARM64Martin Tzvetanov Grigorov2022-10-051-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
| * | | | | | | | | | | | | Merge pull request #2203 from imaiguo/masterJan Niklas Hasse2022-10-234-4/+55
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | support 32bit system like i386 (#829)
| | * | | | | | | | | | | | | support 32bit system like i386 (#829)Ma Aiguo2022-10-094-4/+55
| | |/ / / / / / / / / / / /
| * | | | | | | | | | | | | Merge pull request #2188 from ninja-build/nico-patch-1Jan Niklas Hasse2022-10-231-1/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove requirement for Google copyright from CONTRIBUTING
| | * | | | | | | | | | | | | Remove requirement for Google copyright from CONTRIBUTINGNico Weber2022-08-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.)
| * | | | | | | | | | | | | | Merge pull request #2204 from picsel2/re2c-required-versionJan Niklas Hasse2022-10-181-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / / / | |/| | | | | | | | | | | | | Increase version check of re2c to 0.15.3
| | * | | | | | | | | | | | | Increase required version of re2c to 0.15.3Sebastian Grabowski2022-10-111-2/+2
| |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `--no-version` command line argument was introduced with re2c v0.15.3. See https://re2c.org/releases/changelog/changelog.html
| * | | | | | | | | | | | | Merge pull request #2191 from pseyfert/feature/zsh-completion-quiet-flagJan Niklas Hasse2022-09-051-1/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add --quiet flag to zsh completion
| | * | | | | | | | | | | | | Add --quiet flag to zsh completionPaul Seyfert2022-09-041-1/+2
| |/ / / / / / / / / / / / /
| * | | | | | | | | | | | | Convert RELEASING to Markdown and add instruction for GitHub releaseJan Niklas Hasse2022-08-301-14/+22
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Merge pull request #2101 from ken-matsui/patch-1Jan Niklas Hasse2022-08-301-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid shadowing `time_millis_`, the field of `StatusPrinter`
| | * | | | | | | | | | | | | Avoid shadowing `time_millis_`, the field of `StatusPrinter`Ken Matsui2022-03-151-2/+2
| | | |_|_|_|_|_|_|_|_|_|_|/ | | |/| | | | | | | | | | |
| * | | | | | | | | | | | | Merge pull request #2127 from netheril96/patch-2Jan Niklas Hasse2022-08-301-4/+4
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Really respect the env variable `CLICOLOR_FORCE`.
| | * | | | | | | | | | | | | Qualify `std::string`.Siyuan Ren2022-06-111-1/+1
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Merge branch 'ninja-build:master' into patch-2Siyuan Ren2022-06-1112-89/+416
| | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | Really respect the env variable `CLICOLOR_FORCE`.Siyuan Ren2022-05-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit, ninja disables color output even if CLICOLOR_FORCE is set, if it fails to set VT processing on Windows terminal. This does not respect the user's wish. One use case of this is to force color on MSYS terminal.
| * | | | | | | | | | | | | | | mark this 1.12.0.gitJan Niklas Hasse2022-08-301-1/+1
| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | Merge pull request #2170 from ngg/unicodeJan Niklas Hasse2022-08-301-4/+4
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / / / / / / / / | |/| | | | | | | | | | | | | | Fix building on Windows in UNICODE mode
| | * | | | | | | | | | | | | | Fix building on Windows in UNICODE modeGergely Nagy2022-07-231-4/+4
| | | |_|_|_|_|_|_|_|/ / / / / | | |/| | | | | | | | | | | |
| * | | | | | | | | | | | | | Merge pull request #2110 from splinter-build/compile-getopt-as-c++Jan Niklas Hasse2022-08-251-1/+9
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compile getopt as a C++ file, so that CMake need not look for a C compiler at all
| | * | | | | | | | | | | | | | Compile getopt as a C++ file, so that CMake need not look for a C compiler ↵Michael Jones2022-08-241-1/+9
| |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at all
| * | | | | | | | | | | | | | Merge pull request #2174 from lrtfm/patch-1Jan Niklas Hasse2022-08-231-0/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | | Fixbug: SIGFPE error when cpu.cfs_period_us = 0
| | * | | | | | | | | | | | | Fixbug: SIGFPE error when cpu.cfs_period_us = 0Yang Zongze2022-07-281-0/+2
| | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will fix the issue (#2173).
| * | | | | | | | | | | | | Merge pull request #2139 from ↵Jan Niklas Hasse2022-08-221-3/+13
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ken-matsui/support-building-libninja-re2c-on-configure-py Support building `libninja-re2c.a` on `configure.py`
| | * | | | | | | | | | | | | Support building `libninja-re2c.a` on `configure.py`Ken Matsui2022-05-311-3/+13
| | | |_|_|_|_|_|_|_|/ / / / | | |/| | | | | | | | | | |
| * | | | | | | | | | | | | Merge pull request #2130 from e-kwsm/zsh-completionJan Niklas Hasse2022-08-221-17/+19
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / / | |/| | | | | | | | | | | | improve zsh-completion
| | * | | | | | | | | | | | improve zsh-completionEisuke Kawashima2022-06-131-17/+19
| | | |_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add `ninja` prefix to functions - improve completion of `-d` and `-t` - stop completion if `-h`, `--help`, or `--version` is supplied - add missing `--verbose` options
| * | | | | | | | | | | | Make IsDepsEntryLiveFor static and add const to parameter (#2141)Igor [hyperxor]2022-06-203-3/+3
| | | | | | | | | | | | |
| * | | | | | | | | | | | Build ninja with C++11 (#2089)Bruce Dawson2022-06-167-65/+8
| |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Build ninja with C++11 In order to allow future use of std::chrono to make the stats code portable it is desirable to compile with C++11. Doing so also allows use of std::unordered_map, and reduces the number of #ifdefs in the ninja source code. Switching to C++11 requires modifying both CMakeLists.txt and configure.py, for MSVC and for other build systems. For MSVC the required change is adding /Zc:__cplusplus to tell the compiler to give a more accurate value for the __cplusplus macro. For other platforms the change is to add -std=c++11 or the CMake equivalent. This change makes some progress towards resolving issue #2004. * Delete code and instructions C++11 guarantees that string::data() gives null-terminated pointers, so explicitly adding a null terminator is no longer needed. The Google C++ Style Guide already recommends avoiding unnecessary use of C++14 and C++17 so repeating this in CONTRIBUTING.md is not critical. These changes both came from PR-review suggestions. * Only set cxx_std_11 if standard is 98 * Return to unconditional target_compile_features use After much discussion it sounds like using target_compile_features unconditionally is best.
| * | | | | | | | | | | Merge pull request #2137 from ↵Jan Niklas Hasse2022-06-101-7/+15
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ken-matsui/avoid-building-binary-when-used-as-library Add an option to avoid building binary when used as a library
| | * | | | | | | | | | | Add an option to avoid building binary when used as a libraryKen Matsui2022-06-101-7/+15
| | |/ / / / / / / / / /
| * | | | | | | | | | | Merge pull request #1943 from jdrouhard/output_time_before_commandJan Niklas Hasse2022-06-108-80/+396
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | | | | | | | | Provide resiliency against inputs changing during the build
| | * | | | | | | | | | Introduce mechanism to provide resiliency for inputs changing while the ↵John Drouhard2022-06-108-80/+396
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build runs When an edge starts to run, create a temporary lock file in the build directory, stat it, and cache its mtime. When the command finishes, use the temporary lock file's mtime from when the edge started running as the mtime that is recorded in the build log for each of the edge's output(s). Subsequent runs will use that as the mtime for the output(s). This provides robustness against inputs changing while the command itself is running. If an input is changed, the subsequent run will detect the output as dirty since its recorded mtime reflects when the build command began, not when the output was actually written to disk. Generator and restat rules are exempt from this and will continue to record their actual mtime on disk at the time the command finished in the build log (unless the restat rule cleans the output). This avoids potential infinite loops when the generator rule touches input dependencies of the output(s) or a restat rule intentionally changes implicit dependencies of its output.
| * | | | | | | | | | Merge pull request #2132 from gjasny/init-orderJan Niklas Hasse2022-05-231-1/+1
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | chore: fix build warning
| | * | | | | | | | | | chore: fix build warningGregor Jasny2022-05-171-1/+1
| |/ / / / / / / / / /
| * | | | | | | | | | doc: Add available since 1.11 to ValidationsJan Niklas Hasse2022-05-151-0/+3
| | | | | | | | | | |
| | | | | | | * | | | CleanupBruce Dawson2022-02-183-33/+6
| | | | | | | | | | |
| | | | | | | * | | | Adjusting placementBruce Dawson2022-02-181-1/+2
| | | | | | | | | | |
| | | | | | | * | | | libninja -> ninjaBruce Dawson2022-02-181-1/+1
| | | | | | | | | | |
| | | | | | | * | | | Update CMake c++11 request per CR commentBruce Dawson2022-02-181-1/+1
| | | | | | | | | | |
| | | | | | | * | | | Restore CMakeLists.txt changeBruce Dawson2022-02-181-0/+1
| | | | | | | | | | |
| | | | | | | * | | | Enabling C++11 in configure.pyBruce Dawson2022-02-183-1/+2
| | | | | | | | | | |
| | | | | | | * | | | Make chrono optional, and enable updated __cplusplus on MSVCBruce Dawson2022-02-183-1/+32
| | | | | | | | | | |
| | | | | | | * | | | Merge branch 'ninja-build:master' into steady_clock_now_goodBruce Dawson2022-02-171-11/+0
| | | | | | | |\ \ \ \ | | | | | | | |/ / / / | | | | | | |/| | | |