zero9178
52649de2c5
bugfix: Process escaped colon in GCC depfiles. ( #1774 )
...
* Added ability to parse escaped colons in GCC Dep files enabling ninja to parse dep files of GCC 10 on Windows
* Added generated depfile_parser.cc
* Addressed formatting
* Added extra tests with real world examples of paths produced by both GCC 10 and Clang and GCC pre 10. Adjusted one test so it doesn't fail
* Adjusted regular expression to not match \: if the character following the : is either EOF or whitespace
* Fixed typo in regex (should be 0x20 for space not 0xa)
* Changed regular expression form using lookahead to instead matching a separate expression. This was needed as re2c pre version 1.17 is broken when using lookaheads. Also added tests for \: followed by whitespace
* Addressed formatting
* Forgot a missing std::
* Fixed formatting for spaces after , as well as respecting column width
2020-05-20 14:38:36 +02:00
Jan Niklas Hasse
2127dab42c
GitHub Actions: Build and test both Debug and Release configs
2020-05-18 18:30:42 +02:00
Jan Niklas Hasse
281618a81b
GitHub Actions: Also run on Ubuntu 18.04
...
Builds with both GCC and Clang and runs clang-tidy, too.
2020-05-18 17:18:10 +02:00
Jan Niklas Hasse
cf021f32e6
MinGW now has _mktemp_s, use overload with size parameter
...
MSVC also used the custom implementation, since the function isn't a
macro and therefore
#ifndef _mktemp_s
didn't work as intended.
2020-05-18 11:57:34 +02:00
Jan Niklas Hasse
c6148b0c33
GitHub Actions: Run ninja_test directly
2020-05-14 11:07:24 +02:00
Jan Niklas Hasse
9a77d91952
Merge pull request #1769 from scivision/pytest_win
...
test: skip non-Windows tests if on Windows
2020-04-30 14:47:44 +02:00
Michael Hirsch, Ph.D
e44fcbede9
test: skip non-Windows tests if on Windows
2020-04-27 11:39:48 -04:00
Jan Niklas Hasse
112217185e
Add output test for 'no work to do.'
2020-04-24 12:58:20 +02:00
Jan Niklas Hasse
8ca068c395
Merge pull request #1765 from past-due/macos_deployment_target_1
...
macOS workflow: specify the minimum version of macOS supported
2020-04-18 10:45:40 +02:00
past-due
b91ceb65c8
Add MACOSX_DEPLOYMENT_TARGET to macos workflow
2020-04-17 20:21:03 -04:00
Jan Niklas Hasse
7d00661c1b
Merge pull request #1763 from nomadbyte/master
...
Null terminate the out2 string passed as filter2 to log.Restat
2020-04-15 09:10:42 +02:00
yydevelop
5fa5f1c15c
Null terminate the out2 string passed as filter2 to log.Restat
2020-04-14 19:58:58 -05:00
Jan Niklas Hasse
7c556be510
Turn CONTRIBUTING.md into a link
2020-04-06 16:05:27 +02:00
Jan Niklas Hasse
64ebbcb31a
Merge pull request #1748 from scivision/opts
...
enable Intel, IBM XL, and PGI compilers without header/source changes
2020-04-06 09:01:47 +02:00
Michael Hirsch, Ph.D
418d59b8a6
only apply optional flags when compiler works
2020-04-06 02:38:13 -04:00
Jan Niklas Hasse
8900fa55b5
Merge pull request #1637 from beevik/windows-create-process-fix
...
Improve error messages when ninja commands fail on Windows.
2020-03-26 22:55:26 +01:00
Jan Niklas Hasse
b50e1e3bc6
Merge pull request #1756 from floppym/readme
...
Replace references to README with README.md
2020-03-23 14:20:56 +01:00
Mike Gilbert
b748d08561
Replace references to README with README.md
...
The README file was renamed to README.md in commit
a37da20ae74c81703b1c811182fc154d95ed46fe.
2020-03-20 19:38:26 -04:00
Jan Niklas Hasse
1f3cc7b720
Merge pull request #1742 from scivision/cmake
...
CMake: modernize
2020-03-03 11:10:02 +01:00
Michael Hirsch, Ph.D
ea16698e0a
cmake: append instead of set(x ...)
2020-02-20 22:14:27 -05:00
Michael Hirsch, Ph.D
e6f5bcffb3
cmake: remove redundant cmake_policy()
...
cmake_minimum_required(VERSION 3.15) implicitly sets to NEW all
policies from CMP0094 and older
2020-02-20 22:14:27 -05:00
Jan Niklas Hasse
2ca4c711f7
Merge pull request #1744 from scivision/htmlesc
...
browse.py: use html.escape for python3
2020-02-20 11:08:20 +01:00
Jan Niklas Hasse
39cf5266dd
Merge pull request #1745 from scivision/ciupdate
...
CI: update CMake use
2020-02-20 11:07:24 +01:00
Michael Hirsch, Ph.D
f24d01e83c
ci: use latest checkout action
2020-02-19 06:05:44 -05:00
Michael Hirsch, Ph.D
5ae2ce8f55
ci: use contemporary CMake commands and use latest CMake
2020-02-19 06:05:21 -05:00
Michael Hirsch, Ph.D
4d744de3ee
browse.py: use html.escape for python3
...
fixes #1741
fixes #1736
2020-02-19 05:55:46 -05:00
Jan Niklas Hasse
9fd5d3e00b
Merge pull request #1737 from rezso/patch-1
...
Add install target to CMake build
2020-02-10 13:31:14 +01:00
rezso
34d1bf2f1d
Add install target to CMake build
2020-02-08 19:08:06 +01:00
Jan Niklas Hasse
4853c4d6f1
Merge pull request #1734 from xlotlu/patch-1
...
fix typo
2020-02-07 22:20:46 +01:00
Ionuț Ciocîrlan
416d529efe
fix typo
2020-02-07 02:15:34 +02:00
Jan Niklas Hasse
9119166b4c
Drop deprecated bootstrap.py
2020-02-05 18:11:01 +01:00
Jan Niklas Hasse
12fe8b6ea8
clang-format: Do not derive pointer binding from file
...
See https://github.com/ninja-build/ninja/pull/1438#issuecomment-483353542
2020-02-05 18:08:54 +01:00
Jan Niklas Hasse
b8e3841d69
Merge pull request #1726 from mathstuf/manual-manifest-reference
...
manual: remove "manifest" reference from the manual
2020-01-30 09:31:51 +01:00
Ben Boeckel
0644463f57
manual: remove "manifest" reference from the manual
...
Nothing else describes what a "manifest" is in user-facing docs.
2020-01-29 14:06:30 -05:00
Jan Niklas Hasse
08ecbd6c15
mark this 1.10.0.git
2020-01-27 11:35:41 +01:00
Jan Niklas Hasse
0ccc7886fd
Merge pull request #1624 from bungeman/patch-1
...
Recommend MD over MMD for header dependencies.
2020-01-19 13:16:06 +01:00
Jan Niklas Hasse
adcf925c45
Add short doc for cleandead tool, fix #1716
2020-01-18 13:08:18 +01:00
Jan Niklas Hasse
e6d5140022
Merge pull request #1719 from jhasse/cmake-static-msvc
...
CMake: Use static MSVC runtime, fixes #1692
2020-01-18 12:53:28 +01:00
Jan Niklas Hasse
e0f4e3406d
GitHub Actions: Split Windows and macOS workflows
...
Somehow `$(find ./build -name ninja -or -name ninja.exe)` stopped
working on Windows.
2020-01-18 00:17:38 +01:00
Jan Niklas Hasse
f2cf7a45c0
CMake: Use static MSVC runtime, fixes #1692
2020-01-17 23:38:12 +01:00
Jan Niklas Hasse
d986e4db56
restat: No need for loading build.ninja
...
This results in a huge speed up for large builds (e.g. Chromium). See
#1718 .
2020-01-16 23:50:57 +01:00
Jan Niklas Hasse
d47e1eb00d
restat: Accept list of outputs to restat (none means all)
...
This will become handy when the generator only wants to restat the
build.ninja entry in the log. See #1718 .
2020-01-16 23:10:52 +01:00
Jan Niklas Hasse
26fc40c59a
Merge pull request #1616 from jhasse/contributing-md
...
Use short CONTRIBUTING.md instead of HACKING.md
2020-01-16 16:12:03 +01:00
Jan Niklas Hasse
dfd4c4e370
Merge pull request #1712 from jhasse/centos-7
...
GitHub Actions: Use CentOS 7 for Linux, fix #1533
2020-01-09 08:10:55 +01:00
Jan Niklas Hasse
659d9d9f77
Merge pull request #1717 from crondog/buildperftests
...
Build performance tests with CMake. Fixes #1708
2020-01-08 11:53:41 +01:00
crondog
c6c607ee7e
Build performance tests with CMake. Fixes #1708
...
They are only built and not run with CTest
2020-01-08 21:43:35 +11:00
Jan Niklas Hasse
bab5626e57
Merge pull request #1432 from ikifof/clean_dead_outputs
...
Adding a tool to remove dead outputs.
2020-01-05 00:19:19 +00:00
Jan Niklas Hasse
c44d3406ba
Merge branch 'master' into clean_dead_outputs
2020-01-04 17:34:13 +00:00
Jan Niklas Hasse
1c5857c37d
Merge pull request #1534 from mathstuf/remove-depslog-restriction
...
manifest_parser: remove multi-output depslog restriction
2020-01-04 13:31:23 +00:00
Jan Niklas Hasse
23a628f3c8
Merge pull request #1685 from jhasse/restat
...
Add restat tool which recalculates all mtimes in the build log
2020-01-04 13:21:10 +00:00