summaryrefslogtreecommitdiffstats
path: root/configure.py
Commit message (Collapse)AuthorAgeFilesLines
* Need this to build on vs2017Refael Ackermann2017-02-041-1/+1
| | | | | | | | | | .\src\clparser.cc(56): note: see reference to function template instantiation '_OutIt std::transform<std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,std::_String_iterator<std::_String_val<std::_Simple_types<char>>>,int(__cdecl *)(int)>(_InIt,_InIt,_OutIt,_Fn1)' being compiled with [ _OutIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>, _InIt=std::_String_iterator<std::_String_val<std::_Simple_types<char>>>, _Fn1=int (__cdecl *)(int) ] D:\bin\dev\VS\2017\BuildTools\VC\Tools\MSVC\14.10.24911\include\algorithm(946): warning C4244: '=': conversion from 'int' to 'char', possible loss of data
* FreeBSD supports ppoll(2)Pietro Cerutti2016-09-151-1/+1
|
* Make deps=msvc experimentally available on non-Windows.Nico Weber2016-04-061-0/+2
| | | | | | | | | This makes it possible to run most of the clparser tests on non-Windows, and is potentially useful for cross-compiling on non-Windows hosts. Also, the manual didn't document this as Windows-only previously. If you use this on non-Windows, please let me know, else I might undo this change again in the future.
* Merge pull request #1106 from nico/winfixNico Weber2016-02-051-5/+3
|\ | | | | win: Only drop /showIncludes in bootstrap builds.
| * win: Only drop /showIncludes in bootstrap builds.Nico Weber2016-02-051-5/+3
| | | | | | | | Fixes #1103.
* | MSVC: disable warning about constant conditional expressionsFrank Benkstein2016-02-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The standard headers for Visual Studio 2008 generate a warning about constant conditional expressions when compiled with exception support disabled. This is caused by the _CATCH_ALL macro in xstddef which is defined thusly: #ifdef _HAS_EXCEPTIONS #define _CATCH_ALL } catch (...) { #else #define _CATCH_ALL } if (0) { #endif
* | fix for localized version of cl.exesphawk2016-01-251-1/+1
| |
* | when building with cwd = source root, use relative pathsEvan Martin2015-11-171-1/+6
| | | | | | | | | | | | | | | | The pull request that introduced building from a directory other than the source dir, https://github.com/ninja-build/ninja/pull/979, made it so all source paths are effectively absolute paths. This change restores the old behavior in the case when you are building in the source. See the comments there.
* | rename the build-file variable $sourcedir to $rootEvan Martin2015-11-171-6/+6
| | | | | | | | | | Confusingly, $sourcedir is the path to the root of the repository, *not* the path to the src/ directory.
* | put warning flags togetherEvan Martin2015-11-171-1/+1
| |
* | improve docs generation, including PDF outputEvan Martin2015-11-171-3/+9
|/ | | | | | - Fix the manual build rules (missing the .xsl as an input). - Add a README describing how the docs build works. - Add rules that generate PDF, just 'cause we can.
* Merge pull request #1007 from mikesep/aixEvan Martin2015-11-121-12/+39
|\ | | | | Support for AIX
| * Separate bootstrapped build from final buildMike Seplowitz2015-10-221-10/+23
| | | | | | | | AIX does not support rebuilding ninja in-place from the bootstrapped ninja.
| * Fix getopt for AIXMike Seplowitz2015-08-191-0/+2
| | | | | | | | | | | | | | AIX supplies getopt but not getopt_long. We can't use the embedded getopt implementation, since the constness of its arguments doesn't match the AIX system routine.
| * Implement GetLoadAverage on AIX using libperfstatMike Seplowitz2015-08-191-0/+3
| |
| * Start AIX portMike Seplowitz2015-08-191-2/+11
| |
* | Try to fix #685Nico Weber2015-11-111-1/+1
| |
* | Don't output null.o during configureScott Graham2015-08-271-1/+2
|/
* Set _HAS_EXCEPTIONS=0 on MSVCScott Graham2015-08-101-0/+1
|
* Fix bootstrap from a source path containing spaces.Jason Haslam2015-06-221-2/+6
|
* Search for generated headers relative to build dir.Jason Haslam2015-06-221-0/+3
|
* Allow configure script to bootstrap out of source.Jason Haslam2015-06-221-7/+10
|
* Revert "Bootstrap out of source"Nico Weber2015-06-221-13/+7
|
* Search for generated headers relative to build dir.Jason Haslam2015-05-261-0/+3
|
* Allow configure script to bootstrap out of source.Jason Haslam2015-05-261-7/+10
|
* Remove option no longer needed now that we don't use gtest.Nico Weber2015-03-101-1/+0
|
* Simplify. No behavior change.Nico Weber2015-03-101-2/+1
|
* Make diagnostics colored with new gccs (4.9+) too.Nico Weber2015-03-091-3/+6
| | | | | | Both clang and gcc understand -fdiagnostics-color, so use that flag name. (This will disable colored diagnostics for clangs older than LLVM 3.3, but that is several years old by now.)
* Test for Clang by checking --versionRyan Gonzalez2015-03-091-2/+6
|
* Fix compilation errors on Visual Studio 2015 (_MSC_VER 1900).Beren Minor2014-12-311-0/+2
|
* configure: add a verbose modeBen Boeckel2014-12-111-4/+13
| | | | | Required for Fedora infrastructure so that the commands used to build ninja are logged.
* Make configure.py work with Python. Fixes issue #877.Nico Weber2014-12-031-1/+1
| | | | Patch from @TheOneRing!
* Fix Windows build after #862. Thanks to @harig for the report.Nico Weber2014-11-221-1/+1
|
* Merge pull request #862 from nico/browseNico Weber2014-11-221-4/+5
|\ | | | | Make browse detection consistent with other platform checks.
| * Make browse detection consistent with other platform checks.Nico Weber2014-11-211-4/+5
| |
* | Remove now-unused variable test_libs.Nico Weber2014-11-221-2/+1
| |
* | Stop linking pthread.Nico Weber2014-11-221-2/+0
|/ | | | | | | | | It was only needed by gtest, which is no longer used. (Intesting note: I checked when the -lpthread flag was added, and it's been around since the first revision of build.ninja, which used to be checked in before configure.py existed. Back then, it looks like '@' was used to dereference built-in variables, and build outputs were also prefixed by '@'!).
* Remove duplicate import. No behavior change.Nico Weber2014-11-211-1/+0
|
* merge platform_helper into configure scriptEvan Martin2014-11-181-10/+76
| | | | | With this code all in one place, it's easier to spot unused code and simplification opportunities.
* add a --bootstrap mode for configure.pyEvan Martin2014-11-181-7/+121
| | | | | | Instead of bootstrapping through a separate script, instead make configure.py able to either generate a build.ninja *or* just execute all the computed commands to build a ninja binary.
* Merge pull request #842 from nico/solarisNico Weber2014-11-141-1/+1
|\ | | | | Fix building on Solaris.
| * Fix building on Solaris.Nico Weber2014-11-011-1/+1
| | | | | | | | | | | | "SunOS" and "Solaris" are the same thing these days, so make them go down the same code paths. In particular, the browse feature was omitted on solaris but not sunos5, causing trouble for some folks (see #838).
* | Make sure configure.py and ninja.cc always agree on if -t browse is included.Nico Weber2014-11-141-1/+5
| | | | | | | | | | | | | | | | | | No behavior change on most platforms. On solaris, -t browse was compiled in in ninja.cc but browse.cc wasn't compiled in, which probably means that building on Solaris didn't work. It might be better now. This also makes browse.cc automatically not included in bootstrap builds; previously this was done manually through the NINJA_BOOTSTRAP check.
* | Remove unused variables.Nico Weber2014-11-141-4/+1
|/
* 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
|