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

rustc_trans: implement lld compatibility #33327

Closed
wants to merge 3 commits into from

Conversation

tamird
Copy link
Contributor

@tamird tamird commented May 1, 2016

This changes the semantics of rustc_trans::link::Linker such that the underlying command can no longer be directly accessed. That's used in a later commit which implements preliminary lld compatibility.

r? @japaric
cc @alexcrichton

@tamird tamird force-pushed the linker-refactor branch from f488eef to 645292f Compare May 1, 2016 23:24
@tamird tamird changed the title rustc_trans: cleanup rustc_trans: implement lld compatibility May 1, 2016
@tamird tamird force-pushed the linker-refactor branch from 645292f to 08cac93 Compare May 1, 2016 23:42
if self.is_lld && self.sess.target.target.options.is_like_osx {
let mut v = OsString::from("-l");
v.push(lib);
self.arg(&v);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this case of combining the two args just work everywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly, but it really should be the other way around. This is a case of lld being noncompliant, which should be fixed upstream and then this can be reverted.

Copy link
Member

Choose a reason for hiding this comment

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

I think what @brson is mentioning is that if this form works everywhere we should just use that instead, we didn't pick -l foo for any particular reason beyond it was easier to write for us at the time. If -lfoo works in more places, let's just change to always doing that.

bors added a commit that referenced this pull request May 7, 2016
rustc_back: use a common musl base

extracted from #33327.

cc #33189.

r? @alexcrichton
bors added a commit that referenced this pull request May 7, 2016
rustc_back: use a common musl base

extracted from #33327.

cc #33189.

r? @alexcrichton
@alexcrichton alexcrichton self-assigned this May 8, 2016
@bors
Copy link
Collaborator

bors commented May 20, 2016

☔ The latest upstream changes (presumably #33553) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member

Closing due to inactivity, but feel free to resubmit with a rebase!

@tamird tamird deleted the linker-refactor branch November 18, 2017 18:59
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.

5 participants