GNU/Hurd does have clock_gettime, it just doesn't define _POSIX_TIMERS because its support for timers is not complete.
Details
- Reviewers
ldionne phosek Mordante - Group Reviewers
Restricted Project - Commits
- rG1cfcc36812ff: [libc++] Fix GNU/Hurd build
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
No real objections, but I like to use a better macro if possible.
Another question in general libc++ likes to have a pre-commit CI (https://buildkite.com/llvm-project) for all platforms we support. Would it be possible to provide a CI runner for GNU/Hurd?
libcxx/src/chrono.cpp | ||
---|---|---|
34 | Based on https://github.com/cpredef/predef/blob/master/OperatingSystems.md this macro works too. When that information is correct I prefer this macro; it easier to understand this is for the GNU/Hurd platform and it's not a typo of __GNUC__. Having the full name makes it easier to understand which OS this is. I know it from the context of the patch. but __GNU__ does not ring a bell for me, and I know GNU/Hurd is an OS. |
Another question in general libc++ likes to have a pre-commit CI (https://buildkite.com/llvm-project) for all platforms we support. Would it be possible to provide a CI runner for GNU/Hurd?
If we can, sure. What technology is used for that? Is that buildbot https://lab.llvm.org/buildbot/#/builders ? How much load would that give?
libcxx/src/chrono.cpp | ||
---|---|---|
34 | Right, why not. |
At the moment we use Buildkite
Is this free software? The installation instructions are not talking about source code, only pre-built binaries, which are of course not available for GNU/Hurd.
Can you provide your name and e-mail address, then I'll commit it on your behalf.
Good question. I'm not sure. In the future we plan to move to github actions, maybe that's easier to use on GNU/Hurd.
Can you provide your name and e-mail address, then I'll commit it on your behalf
Samuel Thibault <samuel.thibault@ens-lyon.org>
Thanks!
I've prepared a PR for the release manager https://github.com/llvm/llvm-project-release-prs/pull/650
Based on https://github.com/cpredef/predef/blob/master/OperatingSystems.md this macro works too. When that information is correct I prefer this macro; it easier to understand this is for the GNU/Hurd platform and it's not a typo of __GNUC__.
Having the full name makes it easier to understand which OS this is. I know it from the context of the patch. but __GNU__ does not ring a bell for me, and I know GNU/Hurd is an OS.