Found by in Sjors in #27260 (review) (Thanks!)
Also, includes an unrelated commit to simplify the ci scripts, by assuming nproc exists on macos as well. (Having more than one commit is also required to trigger the test-each-commit
task)
Found by in Sjors in #27260 (review) (Thanks!)
Also, includes an unrelated commit to simplify the ci scripts, by assuming nproc exists on macos as well. (Having more than one commit is also required to trigger the test-each-commit
task)
This avoids special-casing macos
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For detailed information about the code coverage, see the test coverage report.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | theuni |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
utACK fa1cffacae61264ac89e30a069ba093495cb3216.
Nice catch on the Werror.
A quick search confirms that nproc and hw.logicalcpu should be the same value.
The CI logs:
0Treat compiler warnings as errors ..... OFF
0Number of CPUs: 3
0Treat compiler warnings as errors ..... ON
0Number of available processing units: 3
by assuming
nproc
exists on macos as well
It doesn’t, but you can do alias nproc="sysctl -n hw.physicalcpu"
instead of installing all of coreutils
. Though on CI that’s fine by me too.
https://gist.github.com/oleg-andreyev/053b90ef33d2c29446ef466a2817d01c
you can do
alias nproc="sysctl -n hw.physicalcpu"
instead of installing all ofcoreutils
.
No. It needs to be a real executable in PATH
, otherwise, it won’t be picked up in a new shell:
0$ alias npr=nproc ; type npr ; bash -c 'type npr'
1npr is aliased to `nproc'
2bash: line 1: type: npr: not found
If you disagree, I am happy to push any other commit, which passes CI and achieves the same.