-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add SGX target #1124
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 SGX target #1124
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (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. |
r? @gnzlbg |
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.
Modulo nitpicks LGTM.
Is there a way to run libc-test
on this target ?
It's sort of a longstanding bug that the Would you be ok pushing all the functions into lower modules (duplicating them) and that way the top module should only have types shared by all targets? |
Maybe, that seems contrary to efforts like #1086 |
Hm I'm not sure I understand, how's it contrary to |
Sorry, I specifically meant the de-duplication that was done as part of that PR |
Oh I just mean duplicating the definition, for any one platform it's still just defined once. (this is also just functions too I'm talking about as |
Ok, I'd like to see #1126 land first though. |
bc01bab
to
3b5ab65
Compare
Made the changes suggested by @alexcrichton. This is now based on #1126. |
626edb3
to
3ef2444
Compare
CI failure for nightly is the same as #1126 |
☔ The latest upstream changes (presumably #1127) made this pull request unmergeable. Please resolve the merge conflicts. |
3ef2444
to
18b300a
Compare
This appears to contain an spurious commit :/ |
GitHub is broken. d145731 is in master now, git should be able to figure it out when merging. You can view the changes from this PR at https://github.com/rust-lang/libc/compare/master...jethrogb:jb/sgx-target?expand=1 |
This crate duplicates a lot of code just to be able to include some ctypes for a target without libc. Do you think it would be ok to just make |
Duplication is the bread and butter of the I am personally in favor of this PR and would like to merge. If there's a standard C compiler for targets then that means we have type definitions, but it may mean that there's no C functions themselves (such as for this target and wasm) |
I kind of wish we would just put all this code which is shared by all |
☔ The latest upstream changes (presumably #1129) made this pull request unmergeable. Please resolve the merge conflicts. |
I think this was effectively added in #1129, so closing! |
This adds support for the
x86_64-fortanix-unknown-sgx
target. See rust-lang/rust#56066 for details.