Skip to content

Cleanup Dragonfly-specific librustc_back target options #28211

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

Closed
wants to merge 2 commits into from
Closed

Cleanup Dragonfly-specific librustc_back target options #28211

wants to merge 2 commits into from

Conversation

mneumann
Copy link
Contributor

@mneumann mneumann commented Sep 3, 2015

  • Remove support for i686 (DragonFly dropped support of that architecture).
  • Remove not-required target options.

DragonFly no longer supports this architecture since 4.0.
Our options now matches those of freebsd_base.rs.
@rust-highfive
Copy link
Contributor

r? @nikomatsakis

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

@nagisa
Copy link
Member

nagisa commented Sep 3, 2015

Remove support for i686 (DragonFly dropped support of that architecture).

Not sure about this change. Surely there’s older dragonflies out there that still run on i686 and could run rust produced executables, aren’t there?

@@ -16,20 +16,10 @@ pub fn opts() -> TargetOptions {
linker: "cc".to_string(),
dynamic_linking: true,
executables: true,
linker_is_gnu: true,
Copy link
Member

Choose a reason for hiding this comment

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

Just confirming, but it looks like the only place this is used is passing the -O1 flag to the linker, and the dragonfly linker doesn't support that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, I wonder why FreeBSD (freebsd_base.rs) removed linker_is_gnu then. ld in DragonFly is gnu. So this clearly has to stay.

@mneumann
Copy link
Contributor Author

mneumann commented Sep 4, 2015

@nagisa: I doubt there are any i686 DragonFly's out there as it's depreciation has been announced quite some time ago, and even long before that, no one really used it. For sure, it doesn't hurt keeping support for it in Rust, but on the other hand, supporting an unmaintained (and as such potential insecure) platform might not be the right choice.

@nikomatsakis
Copy link
Contributor

r? @alexcrichton

@mneumann
Copy link
Contributor Author

mneumann commented Sep 4, 2015

Closing this pull request for now. I think the only thing that should be removed are the paths "-L/usr/local/lib" and "-L/usr/lib/gcc47" from pre_link_args, as they will interfere with already installed Rust versions (can't compile rustc if rustc is installed in /usr/local).

@mneumann mneumann closed this Sep 4, 2015
@alexcrichton
Copy link
Member

Ah ok, feel free to submit a PR regardless to remove those options, they do indeed seem a little sketchy!

Also if you want to add some of the flags and such to the FreeBSD options again feel free to do so as well!

@mneumann
Copy link
Contributor Author

mneumann commented Sep 6, 2015

@alexcrichton I am not sure what the exact reasoning is behind the FreeBSD options. My pure guess is that they use the gold linker, which is not 100% ld compatible. I can't test atm.

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