Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upHaiku: Initial work at OS support #36727
Conversation
nielx
and others
added some commits
Sep 25, 2016
rust-highfive
assigned
aturon
Sep 25, 2016
This comment has been minimized.
This comment has been minimized.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Aatch
reviewed
Sep 26, 2016
| pub fn set_name(_name: &CStr) { | ||
| // Haiku has no way to set a thread name. | ||
| } | ||
|
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
jonathandturner
added a commit
to jonathandturner/rust
that referenced
this pull request
Sep 27, 2016
alexcrichton
reviewed
Sep 27, 2016
| @@ -279,7 +279,12 @@ impl DirEntry { | |||
| stat(&self.path()).map(|m| m.file_type()) | |||
| } | |||
|
|
|||
| #[cfg(not(target_os = "solaris"))] | |||
| #[cfg(target_os = "haiku")] | |||
This comment has been minimized.
This comment has been minimized.
brson
added
the
relnotes
label
Sep 27, 2016
This comment has been minimized.
This comment has been minimized.
|
cc @rust-lang/libs @rust-lang/tools |
kallisti5 commentedSep 25, 2016
These changes should be non-invasive to non-Haiku platforms. These patches were hand reworked from Neil's original Rust 1.9.0 patches. I've done some style cleanup and design updates along the way.
There are a few small additional patches to libc, rust-installer and compiler-rt that will be submitted once this one is accepted.
Haiku can be compiled on Linux, and a full gcc cross-compiler with a Haiku target is available, which means bootstrapping should be fairly easy. The patches here have already successfully bootstrapped under our haiku x86_gcc2 architecture. http://rust-on-haiku.com/wiki/PortingRust
I'll be focusing on our more modern gcc5 x86 and x86 architectures for now.
As for support, we're not seeking official support for now. We understand Haiku isn't a top-tier OS choice, however having these patches upstream greatly reduces the amount of patchwork we have to do. Mesa has Haiku code upstream, and we submit patches to keep it going. Mesa doesn't test on Haiku and we're ok with that :-)