-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Sys.is* for all recognized kernels #30249
Conversation
Should it be |
|
It was mostly me that didn't find it necessary at the time, but I've come around on it (hence the PR). |
I kind of feel we should just jump the shark and just provide a convenience function for every kernel we officially recognize (e.g. |
I agree, I like that approach. (Though who knows whether we'll even be able to support OpenBSD; they need a heinous number of their own patches just to build LLVM...) |
I like to think that we, as a community, error on the side of optimism, rather than pessimism. |
d814772
to
543eec6
Compare
f456420
to
ce34372
Compare
1e6a661
to
a22e2a9
Compare
a22e2a9
to
90a1d63
Compare
We have `Sys.is*` for a subset of supported platforms, but not for all recognized kernels, e.g. FreeBSD, OpenBSD, etc. `Sys.isbsd` isn't specific enough in some cases, and `Sys.KERNEL === x` is inconsistent with other systems.
90a1d63
to
6b0ba40
Compare
I've found myself wanting
Sys.isfreebsd
while writing some FreeBSD-specific package code in my spare time. Per Elliot's suggestion (see below), this adds predicates for all kernels.