Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upConfigurable host triple #421
Conversation
This comment has been minimized.
This comment has been minimized.
|
This is another sweet patch. I will review soon. |
Diggsey
added some commits
May 9, 2016
Diggsey
force-pushed the
host-triple
branch
from
5f588d1
to
bdd6122
May 9, 2016
This comment has been minimized.
This comment has been minimized.
|
|
brson
force-pushed the
master
branch
2 times, most recently
from
1acdeb2
to
9830d33
May 12, 2016
This comment has been minimized.
This comment has been minimized.
|
This looks great. The only thing I see that looks wrong is that in self_update::prepare_update the triple needs to come from the I don't know what I think of the I'm going to run this locally to see how the new install and show messages look and give you feedback. |
This comment has been minimized.
This comment has been minimized.
|
It looks like this doesn |
This comment has been minimized.
This comment has been minimized.
Unless I've missed somewhere, it already does?
Good shout, I'll add that. |
This comment has been minimized.
This comment has been minimized.
Oh, yes, you are right. |
This comment has been minimized.
This comment has been minimized.
|
If you go with |
This comment has been minimized.
This comment has been minimized.
|
Here's what show looks like when there's lots of info:
With less information it probably looks like this (though I haven't tested):
So there's a new kind of information here, a global setting. I need to figure out how this fits into my mental model. Presumably there are other things we might want to put here, like the telemetry flag. This is definitely the least important info here - in the vast majority of cases nobody is going to touch this and the value will correspond to every toolchain installed. Visually, I think it sticks out a bit. Just an idea: add a Per our conversation I'm still inclined to call this value 'default host', but I'll keep mulling it over. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, I only really added it to The one possible advantage of showing it would be if we wanted to shorten toolchain names when the target matches the host: showing the host would avoid any ambiguity. Regardless of the decision re: host, my primary concern is that a rustup configured with |
brson
referenced this pull request
May 14, 2016
Closed
Don't show targets in toolchain names by default in the UI #461
Diggsey
added some commits
May 15, 2016
This comment has been minimized.
This comment has been minimized.
|
I decided to just switch everything to I haven't added an I renamed what was |
Diggsey commentedMay 8, 2016
This builds on the TOML branch, and allows the host triple to be configured at runtime. It also implements a host triple detection algorithm, using
GetNativeSystemInfoon windows, andunameon other platforms.The host triple can be configured both at install time, and using the CLI, via
rustup set host <xyz>, andrustup showstarts by displaying the current host triple.