Uh oh!
There was an error while loading. Please reload this page.
Add SGX target - #1124
Conversation
rust-highfive
commented
Nov 19, 2018
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. |
gnzlbg
commented
Nov 19, 2018
r? @gnzlbg |
gnzlbg
left a comment
There was a problem hiding this comment.
Modulo nitpicks LGTM.
Is there a way to run libc-test on this target ?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
alexcrichton
commented
Nov 19, 2018
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? |
jethrogb
commented
Nov 19, 2018
Maybe, that seems contrary to efforts like #1086 |
alexcrichton
commented
Nov 19, 2018
Hm I'm not sure I understand, how's it contrary to |
jethrogb
commented
Nov 19, 2018
Sorry, I specifically meant the de-duplication that was done as part of that PR |
alexcrichton
commented
Nov 19, 2018
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 |
jethrogb
commented
Nov 19, 2018
Ok, I'd like to see #1126 land first though. |
jethrogb
commented
Nov 20, 2018
Made the changes suggested by @alexcrichton. This is now based on #1126. |
626edb3 to
3ef2444Comparejethrogb
commented
Nov 20, 2018
CI failure for nightly is the same as #1126 |
bors
commented
Nov 20, 2018
☔ The latest upstream changes (presumably #1127) made this pull request unmergeable. Please resolve the merge conflicts. |
gnzlbg
commented
Nov 20, 2018
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 |
gnzlbg
commented
Nov 20, 2018
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 |
alexcrichton
commented
Nov 20, 2018
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) |
gnzlbg
commented
Nov 20, 2018
I kind of wish we would just put all this code which is shared by all |
bors
commented
Nov 21, 2018
☔ The latest upstream changes (presumably #1129) made this pull request unmergeable. Please resolve the merge conflicts. |
alexcrichton
commented
Nov 21, 2018
I think this was effectively added in #1129, so closing! |
This adds support for the
x86_64-fortanix-unknown-sgxtarget. See rust-lang/rust#56066 for details.