-
Notifications
You must be signed in to change notification settings - Fork 352
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
Freebsd-target-support #2221
Freebsd-target-support #2221
Conversation
fa966c5
to
5f1ef76
Compare
dc3da65
to
993d453
Compare
Both PRs need that function - so landing it first is the best way to avoid conflicts later.
(This was in response to #2221 (comment) but Github reply-by-email is not that great.)
|
Thanks for the PR! Looks like our target support can grow quite a bit in the near future. :) I think for this to work we need to make sure that these targets can actually remain supported as the Rust standard library evolves. So if/when we add freebsd to CI and the supported target in the README, then we should also list there who is actually going to maintain that target -- so that we have someone to ping when there is trouble with that target (the Rust standard library will inevitably change and that might require adjustments in Miri so that the target remains supported). We shouldn't have support for targets that nobody is going to maintain. And I don't want to be on the hook for maintaining them all. :) So @InfRandomness do you want to be listed as maintaining freebsd support in Miri? |
Sure ! |
fafefd0
to
c35b41d
Compare
☔ The latest upstream changes (presumably #2226) made this pull request unmergeable. Please resolve the merge conflicts. |
ad4f00c
to
30b7a78
Compare
30b7a78
to
ddd1e0a
Compare
tests/pass/hello.rs seems to pass successfully but the other tests don't seem like they do |
Thank you InfRandomness, this PR was already super helpful to me in rust-lang/libc#2813 (review) for validating a FreeBSD codepath in the libc crate. |
ddd1e0a
to
45f6be6
Compare
45f6be6
to
e9ed909
Compare
tests/pass/libc.rs
Outdated
unsafe { | ||
assert_eq!(libc::getpid(), std::process::id()); | ||
} | ||
} |
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.
This function is not even called; seems to be some rebase mistake?
Please just remove it. :)
This looks good overall! I just left some minor comments. |
1570486
to
b5c9167
Compare
- Merge pthread_attr_getstack shim to unix/foreign_items.rs
91f2540
to
aa072d7
Compare
Thanks. :) I'm open tom follow-on PRs to get this to be a supported platform that passes all tests. :D |
📌 Commit 5719897 has been approved by |
☀️ Test successful - checks-actions |
Implement freebsd as a target for miri