-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 experimental L4re support #591
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.
Looking good! I think the only thing left is tidy failing, which you can run locally via:
rustc ci/style.rs && ./style src
src/unix/mod.rs
Outdated
@@ -16,14 +16,17 @@ pub type cc_t = ::c_uchar; | |||
pub enum DIR {} | |||
pub enum locale_t {} | |||
|
|||
#[cfg(not(target_os = "l4re"))] |
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.
We typically prefer to avoid these sorts of #[cfg]
annotations in libc wherever possible, mind pushing these structs further down the hierarchy to skip them on l4re?
☔ The latest upstream changes (presumably #578) made this pull request unmergeable. Please resolve the merge conflicts. |
@humenda looks like there may be a merge conflict? Mind also pushing some more of those |
I just realized that there are other efforts to define a separate uclibc target env. I spoke to the author of these lines and agreed with him, that I'll move my changes there. I'll let you know as soon as I'm done and the integration tests work fine.
|
Ok sounds good to me! |
This commit introduces a UNIX-alike target for the l4re microkernel operating system. While this system is not a UNIX system at all, it is easiest to use the POSIX interface and hence benefit from common definitions. This version is a very early draft, only the basic data types have been verified and most of the complex data types (structs and unions) have not been ported yet.
@bors: r+ Thanks! |
📌 Commit 09a04d8 has been approved by |
Add experimental L4re support This PR introduces a UNIX-alike target for the l4re microkernel operating system. While this system is not a UNIX system at all, it is easiest to use the POSIX interface and hence benefit from common definitions. This version is a very early draft, only the basic data types have been verified and most of the complex data types (structs and unions) have not been ported yet. Thanks to TobiasSchaffner for providing his patched version, to verify some assumptions.
💔 Test failed - status-travis |
@bors: retry
…On Thu, Jun 1, 2017 at 2:12 PM, bors ***@***.***> wrote:
💔 Test failed - status-travis
<https://travis-ci.org/rust-lang/libc/builds/238416640?utm_source=github_status&utm_medium=notification>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#591 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95AApruD0EagfgYtGRIxdP9eSxt3wks5r_w0fgaJpZM4NTFN_>
.
|
Add experimental L4re support This PR introduces a UNIX-alike target for the l4re microkernel operating system. While this system is not a UNIX system at all, it is easiest to use the POSIX interface and hence benefit from common definitions. This version is a very early draft, only the basic data types have been verified and most of the complex data types (structs and unions) have not been ported yet. Thanks to TobiasSchaffner for providing his patched version, to verify some assumptions.
☀️ Test successful - status-appveyor, status-travis |
Add L4Re Support in librustc_back Add experimental support for x86_64-unknown-l4re-uclibc target, which covers the L4 Runtime Environment. This pull request contains the changes that have to be made to librustc_back. It follows the changes humenda made in pull request rust-lang/libc#591 to libc. Next steps will be the modifications to the needed libraries. (libstd, liballoc_system, libpanic_abort, libunwind) Thanks to humenda for reviewing.
This PR introduces a UNIX-alike target for the l4re microkernel
operating system. While this system is not a UNIX system at all, it is
easiest to use the POSIX interface and hence benefit from common
definitions.
This version is a very early draft, only the basic data types have been
verified and most of the complex data types (structs and unions) have
not been ported yet.
Thanks to TobiasSchaffner for providing his patched version, to verify some assumptions.