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

Make the metadata loader use the appropriate Target structure #20788

Merged
merged 1 commit into from
Jan 9, 2015

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Jan 9, 2015

Fixes #19907

@rust-highfive
Copy link
Collaborator

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -248,6 +249,7 @@ pub struct Context<'a> {
pub ident: &'a str,
pub crate_name: &'a str,
pub hash: Option<&'a Svh>,
pub target: &'a Target,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment about how this differs to sess.target?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The creader.rs changes sets it to either &self.sess.target.target or &self.sess.host depending on whether it looks for target or host libraries.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was meaning add one to the source. :)

bors added a commit that referenced this pull request Jan 9, 2015
@bors bors merged commit 9dea210 into rust-lang:master Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler plugins not found with target spec
5 participants