-
Notifications
You must be signed in to change notification settings - Fork 50
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 support and CI tests for BSDs #54
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why cfg(all(unix, not(target_vendor = "apple")))
wouldn't work for this?
LGTM otherwise
I was thinking the same thing, but thought that could be a problem for Android if/when that's added (#44). And I guess Haiku is Annoying that Rust doesn't have a way to define a config option once that could be used everywhere for less repetition. |
We could use |
Updated to It's using |
This adds a fallback using `shm_open`/`shm_unlink` for platforms where `memfd_create` doesn't exist. This seems to be how this is normally handled, though it's a bit ugly. This also builds the wayland/x11 code for NetBSD/OpenBSD/DragonFlyBSD. Add CI builds for FreeBSD and NetBSD. We would need some kind of virtualisation though to actually run tests on such targets. I've tested the `shm_open` logic on Linux, but haven't run it on any BSDs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
This adds a fallback using
shm_open
/shm_unlink
for platforms wherememfd_create
doesn't exist. This seems to be how this is normally handled, though it's a bit ugly.This also builds the wayland/x11 code for NetBSD/OpenBSD/DragonFlyBSD.
Add CI builds for FreeBSD and NetBSD. We would need some kind of virtualisation though to actually run tests on such targets.
I've tested the
shm_open
logic on Linux, but haven't run it on any BSDs.