Skip to content
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

target spec: remove /etc/rustc as default path #1473

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

cardoe
Copy link
Contributor

@cardoe cardoe commented Jan 22, 2016

The RFC specifies that if RUST_TARGET_PATH is unset then the default is
/etc/rustc but this won't work on all systems (e.g. Windows) and the
Rust compiler never actually implemented this behavior so remove it from
the RFC. closes rust-lang/rust#31117

Signed-off-by: Doug Goldstein cardoe@cardoe.com

The RFC specifies that if RUST_TARGET_PATH is unset then the default is
/etc/rustc but this won't work on all systems (e.g. Windows) and the
Rust compiler never actually implemented this behavior so remove it from
the RFC. closes rust-lang/rust#31117

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
@brson
Copy link
Contributor

brson commented Jan 22, 2016

This solves a problem, in that it lets distros patch in custom target specs without patching the source, but I agree this is not the way to do it, since it's unix specific and would be the only place rustc knows about /etc/.

@cardoe
Copy link
Contributor Author

cardoe commented Jan 22, 2016

@brson I was thinking making the rustlib directory the default directory searched? That could hopefully work cross platform?

@alexcrichton
Copy link
Member

I'm going to merge this because it's less so much a full-fledged RFC but rather an update to match the current implementation. The custom target spec RFC unfortunately wasn't scrutinized for stabilization in the 1.0 push, so it's been largely grandfathered in. Nowadays we would likely require an RFC to re-add this behavior.

Thanks for the keen eye @cardoe!

cc @rust-lang/tools

alexcrichton added a commit that referenced this pull request Jan 22, 2016
target spec: remove /etc/rustc as default path
@alexcrichton alexcrichton merged commit 4967db5 into rust-lang:master Jan 22, 2016
cardoe added a commit to cardoe/rust that referenced this pull request Apr 9, 2016
The path `/etc/rustc/` is not the default last entry in
RUST_TARGET_PATH. This was in RFC131 but was never implemented in rustc
so it was removed as part of rust-lang#31117 and rust-lang/rfcs#1473.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Apr 14, 2016
…hton

librustc_back: fix incorrect comment about RUST_TARGET_PATH

The path `/etc/rustc/` is not the default last entry in
RUST_TARGET_PATH. This was in RFC131 but was never implemented in rustc
so it was removed as part of rust-lang#31117 and rust-lang/rfcs#1473.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
@Centril Centril added the not-rfc For PRs that fix things like spelling mistakes, wrong file names, etc. label Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-rfc For PRs that fix things like spelling mistakes, wrong file names, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants