-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Re-do: Progress on #9451 #10108
Re-do: Progress on #9451 #10108
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) soon. Please see the contribution instructions for more information. |
In the event that one can get this to not panic (and hopefully also to help get to the bottom of this problem a bit more quickly), here's a patch to apply to the currently-existing -Zbuild-std test to take into account
|
Interesting that the in-house build_std fails on the server given that it's perfectly OK on my end:
And when I updated the test file to make it work with per-package-target, then proceeded to run the same test ― same thing:
|
Well it's compiling now but not linking. Here's where I definitely need help, because the idea that the linker wouldn't be updating even if a target is specified is weird to say the least. It's also bizarre that the linker only does this for built-in target triples and not for custom ones. What's also bizarre is that |
☔ The latest upstream changes (presumably #10093) made this pull request unmergeable. Please resolve the merge conflicts. |
Checking my files, it seems to me like what I needed to do in order to be able to locally run cross tests was to have a cross toolchain installed (with nix, using Having had a quick look at your code, I must say I'm not sure I understand what you're trying to do with the |
Didn't arrive at a complete solution yet, but have been doing some hard work that brings us closer to one ― including, most significantly, storing
explicit_host_kind
as an enum per the suggestion in the//TODO
comment in thestd_resolve_features
definition.This code, unlike the previous attempt, has been tested locally. I would be more than honored to have others from upstream tinker with this PR a bit before merging it, given that in its current state a call to
target_config()
in some as-yet-unknown location mysteriously panics with a "no entry found for key" message. With that out of the way, definingPerPackageTarget
as an option with a nested enum as I did here is definitely a step in the right direction.