Commit Graph

2674 Commits

Author SHA1 Message Date
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
a37da20ae7.
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
Jan Niklas Hasse
1f02bc192a Fix logic-error in IsPathDead, see #1432
The conditional `(!n || !n->in_edge()) && ` was moved up. It now needs
to be inversed because there's a `return false;`. See
3beebde51a (diff-78294872cbf9d32f4f972288561fa718R146)
and
https://github.com/ninja-build/ninja/pull/1432#discussion_r321827528
2019-12-27 22:03:52 +01:00
Andreas Kempf
35169ddf47 Fix error handling for getcwd
Quoting from the Linux man page for errno,

"The value in errno is significant only when the return value of the call
indicated an error (i.e., -1 from most system calls; -1 or NULL from most
library functions); a function that succeeds is allowed to change errno. The
value of errno is never set to zero by any system call or library function."

Successful calls to getcwd are allowed to set errno causing the compilation
database not to be written. Spurious failures of this nature were observed on
AIX.

Adjust the error handling for getcwd so that errno is only checked if the call
returned NULL.
2019-12-27 15:54:42 +01:00