-
Notifications
You must be signed in to change notification settings - Fork 372
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 stat shim for macos #1129
add stat shim for macos #1129
Conversation
892a022
to
462220d
Compare
Maybe we should set up a docker or sth that allows ppl to build for arbitrary architectures |
I'm trying something crazy to avoid abusing Travis. Let's hope it works. |
What would also help for cross-paltform testing, I think, is #1057. Then you could just cross-compile a macOS libstd on a Linux host, and run Miri in macOS target mode. At least that's my hope. ;) |
I have a misalignment somewhere. These are the values in hexadecimal of the fields that I'm able to see right now:
Edit: It seems the culprit was the alignment when starting to write the times. All the fields before the times have a size that is an odd multiple of 32. I added a padding of 32 extra bits and it seems that everything got aligned correctly. Edit2: of course this doesn't happen on 32-bit platforms... so i686 failed. I'm trying to fix it now. |
c204828
to
a5411ba
Compare
@RalfJung I'm very close to finishing the implementation of It seems I made a mistake long ago when I implemented My best guess would be to simply drop the file and then call Here are the logs of the travis build: https://travis-ci.com/rust-lang/miri/jobs/270303147#L1029 |
Let's ignore |
Should I try to deduplicate the shared code between statx and stat? We could do our own "stat" structure and grow it slowly. |
That seems reasonable. Do you want to do that in this PR or a follow-up? |
I have something ready in local. Let me clean it |
LGTM, thanks! @bors r+ |
📌 Commit c8190e8 has been approved by |
add stat shim for macos Here we go. I'm apologizing in advice for the constant torture that Travis will suffer.
☀️ Test successful - checks-travis, status-appveyor |
Here we go. I'm apologizing in advice for the constant torture that Travis will suffer.