summaryrefslogtreecommitdiffstats
path: root/configure.py
Commit message (Collapse)AuthorAgeFilesLines
* Make auto-reconfiguring work if CFLAGS contains more than one flag.Nico Weber2014-09-191-1/+3
| | | | | | | | | | | | | | When using an open-source clang on OS X, one has to pass an isysroot flag so that it can find system headers (stdio.h), like so: CXX=path/to/clang++ CFLAGS="-isysroot $(xcrun -show-sdk-path)" ./configure.py Previously, configure.py wouldn't quote envvars containing spaces, so it'd rerun this as CXX=path/to/clang++ CFLAGS=-isysroot /sysroot/path ./configure.py which would then die because /sysroot/path wasn't excecutable.
* Use a small, standalone testing framework instead of googletest.Nico Weber2014-09-181-28/+3
| | | | | | | | | | | | | | | | | | | | | Ninja currently uses googletest for testing. That makes building ninja_test somewhat annoying since it requires that one passes --with-gtest PATH to configure. It turns out just implementing the bits of googletest that ninja uses needs about the same amount of code than making the --with-gtest flag in configure.py work and making googletest print test results in a way we want (!) In addition to making configuration simpler, this also makes compiling tests much faster: On my system, touching src/build_test.cc (the slowest file to build in ninja) and rebuilding ninja_tests is twice as fast than without this patch. Building all is noticeably faster too: 5.6s with this patch, 9.1s without this patch (38% faster). The most noticeable things missing: EXPECT_* and ASSERT_* don't support streaming notes to them with operator<<, and for failing tests the lhs and rhs are not printed. That's so that this header does not have to include sstream, which slows down building ninja_test almost 20%. If this turns out to be annoying, we can maybe add it.
* create a slightly nicer build.ninja on windowsNico Weber2014-06-151-1/+1
|
* Add a simple manifest parsing perftest.Nico Weber2014-04-171-3/+6
|
* Rename parser_perftest to depfile_parser_perftest.Nico Weber2014-04-161-2/+2
|
* configure.py: use /FS flag under vs2013 when compiling gtestNicholas Hutchinson2014-01-091-1/+4
|
* Wrap to 79 colums. No functionality change.Nico Weber2013-10-271-4/+8
|
* Fix compilation on VS2013Scott Graham2013-10-181-0/+2
|
* add -d keeprsp to preserve @rsp files on success on windowsScott Graham2013-09-101-1/+1
|
* cleanup based on comments from martineDavid Hill2013-06-291-1/+1
|
* support BitrigDavid Hill2013-06-291-2/+2
|
* Added bootstrap/configure option to force pselectTobias Hieta2013-05-231-0/+5
| | | | | | | | | | | | All modern Linux kernels have ppoll() but sometimes you might want to compile on something ancient. This patch adds the possibility to force the use of pselect() instead by passing --force-pselect to bootstrap/configure. The use of ppoll() is still default for Linux and OpenBSD
* require version 1.3 for building ninja itselfEvan Martin2013-05-171-0/+3
| | | | | | This catches the case where you use an older version on Ninja to build a newer version of the Ninja code. bootstrap.py always should work regardless.
* share platform support between configure/bootstrapPatrick von Reth2013-04-301-43/+34
|
* fix --profile=pprof on newer ubuntusEvan Martin2013-04-181-1/+2
| | | | The --as-needed default for ld would drop -lprofiler.
* try again on vs2012 build fixesScott Graham2013-04-111-1/+2
|
* build ninja itself in deps modeEvan Martin2013-04-101-1/+1
| | | | Hopefully will help flush out bugs.
* Merge branch 'dep-pipeless'Evan Martin2013-04-091-9/+5
|\ | | | | | | | | This merges a new mechanism for tracking "depfile" dependencies that is faster on all platforms but dramatically so on Windows.
| * rename "special" to "deps"Evan Martin2013-04-081-1/+1
| |
| * windows: drop use of msvc helper in buildEvan Martin2013-04-081-9/+3
| |
| * add DepsLog, a new data structure for dependency informationEvan Martin2013-04-081-0/+2
| | | | | | | | | | DepsLog is a compact serialization of dependency information. It can be used to replace depfiles for faster loading.
* | move single-line printing to new classNico Weber2013-04-091-0/+1
| |
* | Make gtest output more silent, ninja issue #528.Nico Weber2013-04-091-3/+1
|/ | | | | This is just a proof-of-concept. The terminal printing logic should be extracted from src/build.cc and then reused here.
* move from asciidoc html to asciidoc -> docbook -> htmlEvan Martin2013-02-171-3/+8
| | | | | As best as I can tell this is the easiest way to customize the asciidoc HTML output.
* add syntax for checking versionsEvan Martin2013-02-161-1/+2
|
* always set GTEST_HAS_RTTI=0 in all testing codeEvan Martin2012-12-301-8/+6
|
* wrap some overlong linesEvan Martin2012-12-291-1/+3
|
* fix test build under clang/system gtestEvan Martin2012-12-291-4/+8
| | | | | | Tests always need GTEST_HAS_RTTI=0 set, but the code was only setting it in the --with-gtest branch. Instead always use the test-specific cflags when compiling test code.
* Python scripts: use built-in print function.Zaheer Chothia2012-10-191-11/+5
|
* Add support for Python 3Zaheer Chothia2012-10-181-3/+11
|
* Fix two spelling errorsMartin Olsson2012-10-031-1/+1
|
* packaging: refactored rpm buildingMaxim Kalaev2012-09-231-15/+3
| | | | Now passing through a valid SRPM, working in a standard way.
* Silence bothersome warning from -WextraJon2012-09-201-0/+1
| | | | | Struct initializations such as those in `CLWrapper::Run` of file `src/msvc_helper-win32.cc` causes MinGW GCC to spew warnings.
* Give MinGW builds MSVC build helper superpowersJon2012-09-201-5/+6
| | | | | | Note: _WIN32 is used instead of WIN32 to enable builds with MSVC IDE, Windows SDK non-IDE command line tools, and mingw/mingw-w64 based toolchains
* windows: merge msvc-helper into ninja.exe itselfEvan Martin2012-09-131-14/+7
| | | | | | Now "ninja -t msvc ..." passes the "..." to the msvc helper main. This drastically simplifies bootstrap and makes ninja a single binary again.
* Fix re2c detection which breaks win32 w/ gnuwin32Robert A. Iannucci Jr2012-09-111-4/+4
|
* add solaris platform definitionsAlex Caudill2012-09-071-2/+4
|
* disable a new warning that popped up on WindowsEvan Martin2012-09-071-0/+2
| | | | | This pattern is safe as long as you're careful; we don't use it very much.
* show all in graphEvan Martin2012-09-041-1/+1
|
* fix --debug for glibc pedantic modeEvan Martin2012-09-041-0/+1
|
* windows: pass /Zi to gtest compile as wellEvan Martin2012-08-241-1/+1
|
* drop HACKING from doxygenEvan Martin2012-08-161-1/+1
| | | | | I tried just fixing the code to pull in HACKING.md but it didn't show up in the doxygen output; it's maybe too long to include anyway.
* use 4 space tabs in configure.py, warn on re2c missingEvan Martin2012-08-161-13/+14
|
* Only write re2c rules if a re2c binary is found in the PATH.Nico Weber2012-08-161-6/+16
|
* add a helper binary for wrapping cl.exeEvan Martin2012-08-151-2/+16
| | | | Modify bootstrap etc. to make use of this binary.
* create phony rules for all binariesEvan Martin2012-08-131-5/+3
|
* add functions for normalizing win32 include pathsScott Graham2012-08-121-1/+3
| | | | | | | (Note from Evan: this is landing Scott's code more or less verbatim without a lot of analysis; it could maybe be simplified and reduced, but it's only intended to be used in the MSVC helper so it's fine to be experimental.)
* doc some cl.exe flags in the configure scriptEvan Martin2012-08-121-2/+7
|
* add a module for working with MSVC (cl.exe) behaviorEvan Martin2012-08-121-0/+3
| | | | This will be needed for performant builds on Windows.
* use correct path separator for --with-gtest sourceEvan Martin2012-08-121-2/+2
|