summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GitHub Actions: Split Windows and macOS workflowsJan Niklas Hasse2020-01-172-21/+55
| | | | | Somehow `$(find ./build -name ninja -or -name ninja.exe)` stopped working on Windows.
* CMake: Use static MSVC runtime, fixes #1692Jan Niklas Hasse2020-01-171-1/+3
|
* Merge pull request #1712 from jhasse/centos-7Jan Niklas Hasse2020-01-092-10/+56
|\ | | | | GitHub Actions: Use CentOS 7 for Linux, fix #1533
| * GitHub Actions: Use CentOS 7 for Linux, fix #1533Jan Niklas Hasse2019-12-202-10/+56
| |
* | Merge pull request #1717 from crondog/buildperftestsJan Niklas Hasse2020-01-081-0/+12
|\ \ | | | | | | Build performance tests with CMake. Fixes #1708
| * | Build performance tests with CMake. Fixes #1708crondog2020-01-081-0/+12
|/ / | | | | | | They are only built and not run with CTest
* | Merge pull request #1432 from ikifof/clean_dead_outputsJan Niklas Hasse2020-01-054-0/+108
|\ \ | | | | | | Adding a tool to remove dead outputs.
| * \ Merge branch 'master' into clean_dead_outputsJan Niklas Hasse2020-01-0433-324/+1148
| |\ \ | |/ / |/| |
* | | Merge pull request #1534 from mathstuf/remove-depslog-restrictionJan Niklas Hasse2020-01-0410-141/+378
|\ \ \ | | | | | | | | manifest_parser: remove multi-output depslog restriction
| * | | depfile_parser_test: test buggy -MP behaviorBen Boeckel2019-11-203-2/+31
| | | | | | | | | | | | | | | | | | | | This ensures the current behavior of rejecting this case due to `x` being reused as an input.
| * | | depfile_parser: remove restriction on multiple outputsBen Boeckel2019-11-2010-138/+344
| | | |
| * | | build: add to deps log for each edge outputBen Boeckel2019-11-201-7/+9
| | | |
* | | | Merge pull request #1685 from jhasse/restatJan Niklas Hasse2020-01-049-24/+205
|\ \ \ \ | | | | | | | | | | Add restat tool which recalculates all mtimes in the build log
| * | | | Add a short documentation for restat toolJan Niklas Hasse2019-12-231-0/+3
| | | | |
| * | | | Ignore nonexistent .ninja_log/.ninja_deps for restat and recompactJan Niklas Hasse2019-12-238-26/+71
| | | | |
| * | | | Add restat tool which recalculates all mtimes in the build logJan Niklas Hasse2019-12-234-0/+133
| | | | |
* | | | | Fix logic-error in IsPathDead, see #1432Jan Niklas Hasse2019-12-271-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 getcwdAndreas Kempf2019-12-271-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 directoryJan Niklas Hasse2019-12-231-4/+7
| | | |
* | | | Add .editorconfigKOLANICH2019-12-221-0/+11
| | | | | | | | | | | | | | | | See https://editorconfig.org/ for more info.
* | | | Remove some outdated lines from .gitignoreJan Niklas Hasse2019-12-201-2/+1
| |_|/ |/| |
* | | Enable Link Time Optimization for Release builds (#1701)Michael Jones2019-12-031-0/+13
| | |
* | | Ignore Qt Creator project files (#1702)Michael Jones2019-12-031-0/+3
| | |
* | | Have Github Actions also run tests (#1697)Michael Jones2019-12-021-1/+2
| | |
* | | Merge pull request #1666 from Helenerineium/masterJan Niklas Hasse2019-11-242-2/+2
|\ \ \ | | | | | | | | Fix warnings on mingw builds
| * | | Fix warnings on mingw buildHelenerineium2019-11-232-2/+2
|/ / /
* | | Merge pull request #1664 from Hi-Angel/constify-stuff3Jan Niklas Hasse2019-11-214-24/+24
|\ \ \ | | | | | | | | More constification
| * | | build.cc: constify BuildStatusKonstantin Kharlamov2019-11-202-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
| * | | build.cc: constify a map in BuildStatusKonstantin Kharlamov2019-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Modifying a key in C++ associative containers is UB. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
| * | | graph.cc: constify DependencyScanKonstantin Kharlamov2019-11-202-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
| * | | build.cc: constify a few Plan functionsKonstantin Kharlamov2019-11-202-13/+13
| | | | | | | | | | | | | | | | Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
| * | | build.cc: constify a map key in RealCommandRunnerKonstantin Kharlamov2019-11-201-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-binariesJan Niklas Hasse2019-11-191-0/+72
|\ \ \ | |/ / |/| | Add GitHub Actions workflow for building release binaries
| * | Trigger test run for release builds on PRsRyan Mast2019-11-161-0/+1
| | |
| * | Fix yaml lint (whitespace) errors in release actionRyan Mast2019-11-151-6/+6
| | |
| * | Strip unnecessary info from the Linux binaryRyan Mast2019-10-311-0/+4
| | |
| * | Upload ninja binary to published releasesRyan Mast2019-10-311-3/+15
| | |
| * | Add GitHub Action workflow to build ninja using CMakeRyan Mast2019-10-311-0/+55
| | |
* | | Merge pull request #1680 from jonesmz/patch-1Jan Niklas Hasse2019-11-162-2/+2
|\ \ \ | | | | | | | | Fix invalid preprocessor #if
| * | | Update graph_test.ccMichael Jones2019-11-141-1/+1
| | | |
| * | | Fix invalid preprocessor #ifMichael Jones2019-11-141-1/+1
| | | |
* | | | Merge pull request #1683 from xianglin1006/masterJan Niklas Hasse2019-11-161-2/+2
|\ \ \ \ | |/ / / |/| | | Fix minor typo of return value
| * | | Fix minor typo of return valuexianglin10062019-11-151-2/+2
|/ / / | | | | | | Return value of ManifestParser::ParseEdge shoule be boolean
* | | Merge pull request #1672 from joakim-noah/patch-1Jan Niklas Hasse2019-11-111-1/+1
|\ \ \ | | | | | | | | Add Bionic tweak for getloadavg
| * | | Add Bionic tweak for getloadavgjoakim-noah2019-11-091-1/+1
|/ / /
* | | Merge pull request #1665 from SibiSiddharthan/masterJan Niklas Hasse2019-11-021-0/+5
|\ \ \ | |/ / |/| | Fixed compilation by gcc on Windows
| * | Fixed compilation by gcc on WindowsSibi2019-11-021-0/+5
|/ /
* | Merge pull request #1654 from BourgondAries/masterJan Niklas Hasse2019-10-302-0/+10
|\ \ | | | | | | Ensure substring indexing never goes negative
| * | Ensure substring indexing never goes negativeKevin Robert Stravers2019-09-282-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 Hasse2019-10-282-8/+5
| | | | | | | | | | | | | | | | | | This reverts commit cfd0bd3007b291df505f8c45083453310142d681. See #1662.