summaryrefslogtreecommitdiffstats
path: root/configure.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1562 from jhasse/googletestJan Niklas Hasse2023-11-221-38/+0
|\ | | | | Use GoogleTest instead of our own framework
| * Merge branch 'master' into googletestJan Niklas Hasse2023-10-121-9/+30
| |\
| * \ Merge branch 'master' into googletestJan Niklas Hasse2021-11-161-1/+4
| |\ \
| * | | Use GoogleTest instead of our own frameworkJan Niklas Hasse2020-11-181-35/+0
| | | | | | | | | | | | | | | | Fixes #1248.
* | | | Remove unused module string in configure.pyByoungchan Lee2023-10-091-1/+0
| | | |
* | | | Replace pipes.quote with shlex.quote in configure.pyByoungchan Lee2023-10-091-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | Python 3.12 deprecated the pipes module and it will be removed in Python 3.13. In configure.py, I have replaced the usage of pipes.quote with shlex.quote, which is the exactly same function as pipes.quote. For more details, refer to PEP 0594: https://peps.python.org/pep-0594
* | | Use python3 in all run linesNico Weber2023-01-101-3/+1
| | | | | | | | | | | | | | | We already did this in some, this converts the rest. Also chmod +x on write_fake_manifests.py while here.
* | | Merge pull request #2086 from randomascii/compiler_detectJan Niklas Hasse2022-10-231-0/+9
|\ \ \ | | | | | | | | Detect whether VC++ compiler can be found in configure.py
| * \ \ Merge branch 'master' into compiler_detectJan Niklas Hasse2022-08-221-3/+17
| |\ \ \
| * | | | Fix function and parameter names, and commentBruce Dawson2022-03-091-4/+4
| | | | |
| * | | | Merge branch 'ninja-build:master' into compiler_detectBruce Dawson2022-02-171-2/+2
| |\ \ \ \
| * | | | | Improve error messages when VS cannot be foundBruce Dawson2021-07-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first experience for most developers who start working on ninja is this cryptic error message: bootstrapping ninja... Traceback (most recent call last): File "configure.py", line 329, in <module> if platform.msvc_needs_fs(): File "configure.py", line 89, in msvc_needs_fs stderr=subprocess.PIPE) File "python\bin\lib\subprocess.py", line 394, in __init__ errread, errwrite) File "python\bin\lib\subprocess.py", line 644, in _execute_child startupinfo) WindowsError: [Error 2] The system cannot find the file specified This message happens when bootstrap.py first tries to invoke cl.exe and it cannot be found. This change looks for cl.exe and warns if it is not in the user's path, leading to this friendlier message: bootstrapping ninja... Traceback (most recent call last): File "configure.py", line 317, in <module> raise Exception('cl.exe not found. Run again from the Developer Command Prompt for VS') Exception: cl.exe not found. Run again from the Developer Command Prompt for VS
* | | | | | Increase required version of re2c to 0.15.3Sebastian Grabowski2022-10-111-2/+2
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | The `--no-version` command line argument was introduced with re2c v0.15.3. See https://re2c.org/releases/changelog/changelog.html
* | | | | Merge pull request #2139 from ↵Jan Niklas Hasse2022-08-221-3/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ken-matsui/support-building-libninja-re2c-on-configure-py Support building `libninja-re2c.a` on `configure.py`
| * | | | | Support building `libninja-re2c.a` on `configure.py`Ken Matsui2022-05-311-3/+13
| | |/ / / | |/| | |
* | | | | Build ninja with C++11 (#2089)Bruce Dawson2022-06-161-0/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Build ninja with C++11 In order to allow future use of std::chrono to make the stats code portable it is desirable to compile with C++11. Doing so also allows use of std::unordered_map, and reduces the number of #ifdefs in the ninja source code. Switching to C++11 requires modifying both CMakeLists.txt and configure.py, for MSVC and for other build systems. For MSVC the required change is adding /Zc:__cplusplus to tell the compiler to give a more accurate value for the __cplusplus macro. For other platforms the change is to add -std=c++11 or the CMake equivalent. This change makes some progress towards resolving issue #2004. * Delete code and instructions C++11 guarantees that string::data() gives null-terminated pointers, so explicitly adding a null terminator is no longer needed. The Google C++ Style Guide already recommends avoiding unnecessary use of C++14 and C++17 so repeating this in CONTRIBUTING.md is not critical. These changes both came from PR-review suggestions. * Only set cxx_std_11 if standard is 98 * Return to unconditional target_compile_features use After much discussion it sounds like using target_compile_features unconditionally is best.
* | | | Disable re2c from embedding the version number in the source fileMarc-Antoine Ruel2021-12-311-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | The checked in sources (depfile_parser.cc and lexer.cc) have the re2c version embedded in it. The output didn't change since re2c 1.3, except for the different version number. A reproducible build would use a pinned version of re2c anyway, so there is no need to hardcode its value in the checked in generated files.
* | | Merge pull request #1983 from sgraham/masterJan Niklas Hasse2021-08-251-1/+1
|\ \ \ | |/ / |/| | win: Use cl /help to test for /FS requirement
| * | win: Use cl /help to test for /FS requirementScott Graham2021-06-131-1/+1
| | |
* | | compdb: escape control characters in JSON stringsLi-Yu Yu2021-07-221-0/+2
|/ /
* | Merge pull request #1331 from ilor/missingdeps3Jan Niklas Hasse2021-02-231-0/+2
|\ \ | | | | | | missingdeps tool, take 2
| * | Add a -t missingdeps tool to detect some classes of build flakesTomasz Śniatowski2021-02-221-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tool looks for targets that depend on a generated file, but do not properly specify a dependency on the generator. It needs to be run after a successful build, and will list all potential flakes that may have broken the build, but didn't due to accidental build step ordering. The search relies on the correctness of depfile and generator output information, but these are usually easier to get right than dependencies. The errors found can usually be verified as actual build flakes by trying to build the listed problematic files alone in a clean build directory. Such builds usually fail with a compile job lacking a generated file. There is some overlap between this tool and 'gn check', but not everyone uses gn, not everyone using gn uses gn check, and most importantly, gn check is more about modularity, and less about actual build-time deps without flakes. The tool needs to be run after a build completes and depfile data is collected. It may take several seconds to process, up to a dozen or two on a large, chromium-sized build.
* | Turn BuildStatus into an interfaceColin Cross2020-12-181-0/+2
|/ | | | | | Make BuildStatus an abstract interface, and move the current implementation to StatusPrinter, to make way for a serialized Status output.
* Fix test crashes on AIXKevin Adler2020-11-131-0/+5
| | | | | | | | | | | | | Both hash_collision_bench and manifest_parser_perftest crash on AIX with terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc IOT/Abort trap (core dumped) 32-bit AIX applications by default allocates only a single 256M segment for stack and heap for 32-bit applications, which is insufficient for these tests. When building these tests on AIX in 32-bit mode, increase the max number of segments so they will run without crashing.
* Use c++ instead of g++Krzysztof Leśniak2020-08-011-1/+1
| | | | `configure.py` assumes `g++` is present on the system, which is not the case, e.g. for FreeBSD. `c++` should be used insted, which should be a link to system c++ compiler. This will be `g++` for linux, but `clang++` for FreeBSD.
* Replace references to README with README.mdMike Gilbert2020-03-201-1/+1
| | | | | The README file was renamed to README.md in commit a37da20ae74c81703b1c811182fc154d95ed46fe.
* Fix warnings on mingw buildHelenerineium2019-11-231-1/+1
|
* Fix MinGW bootstrap build by applying the fix in appveyor.yml permanently.Colin Finck2019-08-261-1/+1
|
* Enable build on IBM i platform (#1630)ThePrez2019-08-091-1/+6
| | | | * No perfstat for IBM i (OS400) AIX variant * Allow for future IBM i to identify as 'os400'
* Update WIN32_WINNT from 0x0501 (Windows XP) to 0x0601 (Windows 7) to support ↵Jesse McKenna2019-07-231-1/+1
| | | | processor-group Windows API
* Teach DependencyScan to load a dyndep fileBrad King2019-04-181-0/+1
| | | | | Add a LoadDyndeps method to load a dyndep file and update the edges that name it in their dyndep binding.
* Add a parser for a new "dyndep" file formatBrad King2019-04-181-0/+2
| | | | | | | | Define a file format suitable for specifying dynamically-discovered dependency information for build edges. Design a format inspired by the build manifest format and using the same lexer. Start with a required format version specification followed by "build" statements that add implicit inputs and outputs to existing edges.
* Factor out a base class of ManifestParserBrad King2019-04-181-0/+1
| | | | | | Create a Parser base class that holds parser functionality not specific to the build manifest file format. This will allow it to be re-used for other parsers later.
* Remove trailing whitespace from all filesJan Niklas Hasse2019-04-171-1/+1
|
* Fix older VS compatibility issues and PDB files generation issue. (#1435)ikifof2018-11-071-8/+15
| | | Fixes #1411.
* Merge pull request #1326 from 0-wiz-0/masterJan Niklas Hasse2018-11-051-1/+1
|\ | | | | Two fixes for NetBSD
| * Add NetBSD in another clause.Thomas Klausner2017-09-101-1/+1
| |
* | Port to AIX platform.Vasili Skurydzin2018-08-021-0/+5
| | | | | | | | Taking care of printf format specifiers and large files using compiler macros in configure.py
* | Honor CXXFLAGS in configure.pyRyan Schmidt2018-04-061-1/+5
|/
* Add support for DragonFly.Imre Vadász2017-06-101-3/+7
| | | | | DragonFly uses a fork of FreeBSD ports, and also uses the /usr/local prefix. And ppoll is also available in DragonFly.
* Add string_piece_utilTakuto Ikuta2017-04-261-0/+2
| | | | | | | | | | | | | Following functions are implemented for further performance optimization. * JoinStringPiece * SplitStringPiece * EqualsCaseInsensitiveASCII * ToLowerASCII To improve performance of CLParser, I will introduce above functions into include_normalize-win32.cc.
* Add clparser_perftestTakuto Ikuta2017-04-121-15/+11
|
* 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.