Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add <stdlib.h> includes for clang++/libc++ on Ubuntu | Dan Willemsen | 2016-04-21 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | There are a number of stdlib.h uses in these files without including stdlib.h: hash_collision_bench.cc: rand, RAND_MAX, srand manifest_parser_perftest.cc: system, exit ninja_test.cc: EXIT_SUCCESS, EXIT_FAILURE test.cc: getenv, mkdtemp, system This works on a Ubuntu g++/libstdc++ build, as the <algorithm> header pulls in stdlib.h, and on a OSX clang++/libc++ build the <map> and <string> headers pull in stdlib.h. But a Ubuntu clang++/libc++ build does not pull in stdlib.h with any of these other headers. $ apt-get install clang-3.6 libc++-dev $ CXX=clang++-3.6 CFLAGS=-stdlib=libc++ LDFLAGS=-stdlib=libc++ \ ./configure.py $ ninja ninja_test hash_collision_bench manifest_parser_perftest This was originally discovered using the host toolchain provided with Android, but the Ubuntu version is much easier to reproduce. | ||||
* | Replace ManifestParser::FileReader with general FileReader | Brad King | 2016-02-03 | 1 | -8/+2 |
| | | | | | | Avoid having two separate filesystem interfaces. Simplify test infrastructure by avoiding custom `ManifestParser::FileReader` implementations. | ||||
* | perftest: fix compilation after dupe_edge_should_err change | Brad King | 2016-02-02 | 1 | -1/+1 |
| | | | | | Fix some ManifestParser constructor calls missed by commit 56bab441b7 (dupe_edge_should_err from bool to enum, 2016-01-27). | ||||
* | Let Stat() have an err outparam instead of writing to stderr. | Nico Weber | 2015-03-31 | 1 | -7/+12 |
| | | | | | | | | | Also check for Stat() failure in a few more places. This way, ninja doesn't print two "ninja: error: " lines if stat() fails during a build. It also makes it easier to keep the stat tests quiet. Every caller of Stat() needs to explicitly log the error string if that's desired. | ||||
* | Fix -Wunused-result warning for chdir on linux. | Nico Weber | 2014-06-25 | 1 | -1/+5 |
| | |||||
* | Make manifest_parser_perftest build on Windows. | Nico Weber | 2014-04-27 | 1 | -1/+3 |
| | |||||
* | Manifest perftest: Try to make it build on Linux. | Nico Weber | 2014-04-17 | 1 | -0/+1 |
| | |||||
* | Manifest perftest: Pull manifest parsing into own function. | Nico Weber | 2014-04-17 | 1 | -17/+20 |
| | |||||
* | Manifest perftest: Also measure command evaluation time. | Nico Weber | 2014-04-17 | 1 | -5/+31 |
| | |||||
* | Add a simple manifest parsing perftest. | Nico Weber | 2014-04-17 | 1 | -0/+82 |