Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix logic-error in IsPathDead, see #1432 | Jan Niklas Hasse | 2019-12-27 | 1 | -1/+1 |
| | | | | | | | | The conditional `(!n || !n->in_edge()) && ` was moved up. It now needs to be inversed because there's a `return false;`. See https://github.com/ninja-build/ninja/commit/3beebde51a2089ecb01820f1428efe0263deaeea#diff-78294872cbf9d32f4f972288561fa718R146 and https://github.com/ninja-build/ninja/pull/1432#discussion_r321827528 | ||||
* | Fix error handling for getcwd | Andreas Kempf | 2019-12-27 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | Quoting from the Linux man page for errno, "The value in errno is significant only when the return value of the call indicated an error (i.e., -1 from most system calls; -1 or NULL from most library functions); a function that succeeds is allowed to change errno. The value of errno is never set to zero by any system call or library function." Successful calls to getcwd are allowed to set errno causing the compilation database not to be written. Spurious failures of this nature were observed on AIX. Adjust the error handling for getcwd so that errno is only checked if the call returned NULL. | ||||
* | Run output test in temporary directory | Jan Niklas Hasse | 2019-12-23 | 1 | -4/+7 |
| | |||||
* | Add .editorconfig | KOLANICH | 2019-12-22 | 1 | -0/+11 |
| | | | | See https://editorconfig.org/ for more info. | ||||
* | Remove some outdated lines from .gitignore | Jan Niklas Hasse | 2019-12-20 | 1 | -2/+1 |
| | |||||
* | Enable Link Time Optimization for Release builds (#1701) | Michael Jones | 2019-12-03 | 1 | -0/+13 |
| | |||||
* | Ignore Qt Creator project files (#1702) | Michael Jones | 2019-12-03 | 1 | -0/+3 |
| | |||||
* | Have Github Actions also run tests (#1697) | Michael Jones | 2019-12-02 | 1 | -1/+2 |
| | |||||
* | Merge pull request #1666 from Helenerineium/master | Jan Niklas Hasse | 2019-11-24 | 2 | -2/+2 |
|\ | | | | | Fix warnings on mingw builds | ||||
| * | Fix warnings on mingw build | Helenerineium | 2019-11-23 | 2 | -2/+2 |
|/ | |||||
* | Merge pull request #1664 from Hi-Angel/constify-stuff3 | Jan Niklas Hasse | 2019-11-21 | 4 | -24/+24 |
|\ | | | | | More constification | ||||
| * | build.cc: constify BuildStatus | Konstantin Kharlamov | 2019-11-20 | 2 | -4/+4 |
| | | | | | | | | Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> | ||||
| * | build.cc: constify a map in BuildStatus | Konstantin Kharlamov | 2019-11-20 | 1 | -1/+1 |
| | | | | | | | | | | | | Modifying a key in C++ associative containers is UB. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> | ||||
| * | graph.cc: constify DependencyScan | Konstantin Kharlamov | 2019-11-20 | 2 | -3/+3 |
| | | | | | | | | Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> | ||||
| * | build.cc: constify a few Plan functions | Konstantin Kharlamov | 2019-11-20 | 2 | -13/+13 |
| | | | | | | | | Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> | ||||
| * | build.cc: constify a map key in RealCommandRunner | Konstantin Kharlamov | 2019-11-20 | 1 | -3/+3 |
|/ | | | | | | Modifying a key in C++ associative containers is UB. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> | ||||
* | Merge pull request #1681 from nightlark/release-ninja-binaries | Jan Niklas Hasse | 2019-11-19 | 1 | -0/+72 |
|\ | | | | | Add GitHub Actions workflow for building release binaries | ||||
| * | Trigger test run for release builds on PRs | Ryan Mast | 2019-11-16 | 1 | -0/+1 |
| | | |||||
| * | Fix yaml lint (whitespace) errors in release action | Ryan Mast | 2019-11-15 | 1 | -6/+6 |
| | | |||||
| * | Strip unnecessary info from the Linux binary | Ryan Mast | 2019-10-31 | 1 | -0/+4 |
| | | |||||
| * | Upload ninja binary to published releases | Ryan Mast | 2019-10-31 | 1 | -3/+15 |
| | | |||||
| * | Add GitHub Action workflow to build ninja using CMake | Ryan Mast | 2019-10-31 | 1 | -0/+55 |
| | | |||||
* | | Merge pull request #1680 from jonesmz/patch-1 | Jan Niklas Hasse | 2019-11-16 | 2 | -2/+2 |
|\ \ | | | | | | | Fix invalid preprocessor #if | ||||
| * | | Update graph_test.cc | Michael Jones | 2019-11-14 | 1 | -1/+1 |
| | | | |||||
| * | | Fix invalid preprocessor #if | Michael Jones | 2019-11-14 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #1683 from xianglin1006/master | Jan Niklas Hasse | 2019-11-16 | 1 | -2/+2 |
|\ \ \ | |/ / |/| | | Fix minor typo of return value | ||||
| * | | Fix minor typo of return value | xianglin1006 | 2019-11-15 | 1 | -2/+2 |
|/ / | | | | | Return value of ManifestParser::ParseEdge shoule be boolean | ||||
* | | Merge pull request #1672 from joakim-noah/patch-1 | Jan Niklas Hasse | 2019-11-11 | 1 | -1/+1 |
|\ \ | | | | | | | Add Bionic tweak for getloadavg | ||||
| * | | Add Bionic tweak for getloadavg | joakim-noah | 2019-11-09 | 1 | -1/+1 |
|/ / | |||||
* | | Merge pull request #1665 from SibiSiddharthan/master | Jan Niklas Hasse | 2019-11-02 | 1 | -0/+5 |
|\ \ | |/ |/| | Fixed compilation by gcc on Windows | ||||
| * | Fixed compilation by gcc on Windows | Sibi | 2019-11-02 | 1 | -0/+5 |
|/ | |||||
* | Merge pull request #1654 from BourgondAries/master | Jan Niklas Hasse | 2019-10-30 | 2 | -0/+10 |
|\ | | | | | Ensure substring indexing never goes negative | ||||
| * | Ensure substring indexing never goes negative | Kevin Robert Stravers | 2019-09-28 | 2 | -0/+10 |
| | | | | | | | | | | | | With widths lower than 4, the ElideMiddle function would crash because its substring access would wrap around and attempt to access the max size_t value. This patch fixes that. | ||||
* | | Revert "1492 add column headers to .ninja_log" | Jan Niklas Hasse | 2019-10-28 | 2 | -8/+5 |
| | | | | | | | | | | | | This reverts commit cfd0bd3007b291df505f8c45083453310142d681. See #1662. | ||||
* | | Travis CI: Remove broken Xcode config | Jan Niklas Hasse | 2019-10-28 | 1 | -2/+0 |
|/ | |||||
* | CMake: Bump required version for object libraries | Jan Niklas Hasse | 2019-09-21 | 1 | -1/+1 |
| | |||||
* | CMake: Let MSVC correctly report __cplusplus | Jan Niklas Hasse | 2019-09-21 | 1 | -1/+1 |
| | |||||
* | Fix crash when using MSVC in debug mode | Jan Niklas Hasse | 2019-09-21 | 1 | -0/+4 |
| | | | | | Accessing inputs_[0] when it's empty results in an assert when running in debug. Avoid it by using data() if available. | ||||
* | Merge pull request #1651 from bmwiedemann/onecore | Jan Niklas Hasse | 2019-09-20 | 1 | -1/+1 |
|\ | | | | | Fix test_issue_1418 to pass on 1-core VM | ||||
| * | Fix test_issue_1418 to pass on 1-core VM | Bernhard M. Wiedemann | 2019-09-20 | 1 | -1/+1 |
|/ | | | | | the previous assert would fail because on a 1-core VM, the 3 outputs were produced sequentially from top to bottom | ||||
* | Small constifications (#1647) | Konstantin Kharlamov | 2019-09-19 | 5 | -15/+15 |
| | | | | | | | * build: constify EdgeWanted() * build: constify a bit of CommandRunner * graph: constify functions of struct Edge Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> | ||||
* | Merge pull request #1563 from jhasse/cmake | Jan Niklas Hasse | 2019-08-30 | 2 | -1/+98 |
|\ | | | | | Add CMake build file as an alternative to configure.py | ||||
| * | Ignore all kinds of build directories | Jan Niklas Hasse | 2019-08-28 | 1 | -1/+1 |
| | | |||||
| * | CMake: Fix Windows build | Jan Niklas Hasse | 2019-08-28 | 1 | -0/+7 |
| | | |||||
| * | CMake: Support building without re2c | Jan Niklas Hasse | 2019-08-28 | 1 | -9/+15 |
| | | |||||
| * | Add CMake build file as an alternative to configure.py | Jan Niklas Hasse | 2019-08-28 | 1 | -0/+84 |
| | | |||||
* | | Merge pull request #1634 from ColinFinck/fix-mingw | Jan Niklas Hasse | 2019-08-28 | 2 | -2/+1 |
|\ \ | |/ |/| | Fix MinGW bootstrap build. | ||||
| * | Fix MinGW bootstrap build by applying the fix in appveyor.yml permanently. | Colin Finck | 2019-08-26 | 2 | -2/+1 |
| | | |||||
* | | Travis CI: Use Python 3 to configure build | Jan Niklas Hasse | 2019-08-19 | 1 | -1/+1 |
|/ | | | Python 2 doesn't support nanosecond timestamps properly (see #1554). | ||||
* | Expand the continuous integration coverage to more platforms / operating ↵ | Michael Jones | 2019-08-13 | 2 | -1/+45 |
| | | | | systems (#1612) |