-
Notifications
You must be signed in to change notification settings - Fork 358
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
[cargo-miri] Interpret unit tests of proc-macro crates #1677
Conversation
Hm, that's not what I had in mind... I thought we could detect this by looking at the command-line arguments cargo passes to us. I will take a closer look at this, but I don't have a lot of spare time currently, so I cannot dig into this myself or provide an in-depth review currently -- sorry for that. |
It's okay. Meanwhile I'm going to try if I can continue #1674 (that's "looking at the command-line arguments cargo passes to us"). Thanks for taking a look! |
I tried to continue #1674 here and stopped using |
This sounds like it is using the host rustc sysroot when it needs the Miri sysroot. |
|
||
if env::var_os("MIRI_TARGET_IS_HOST").is_some() { | ||
cmd.arg("--sysroot"); | ||
cmd.arg(sysroot); |
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.
This sounds like it is using the host rustc sysroot when it needs the Miri sysroot.
It's strange that I explicitly set --sysroot
to the Miri sysroot and that was even shown up in the verbose output. I must miss something. 😕
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.
I don't understand your goal here. Didn't we say that these crates (proc-macro tests) would not be interpreted with Miri, and that they would not be run at all?
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.
This comment has been minimized.
This comment has been minimized.
@RalfJung I meant I had not given up this PR yet and feel free to close this PR (next week or more later when you have time, good luck to your current work) if you think this approach is undesirable or unlikely to succeed. |
I think #1675 is more promising, so given that this here also doesn't seem to work (if I understood you correctly, and judging from the CI status), let's close this and focus on the other PR. |
This PR is the successor of #1674.
Will
fix
#1660.