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

sync x86_64-unknown-linux-gnu settings file with upstream #634

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ pub fn target() -> Target {
base.cpu = "x86-64".into();
base.plt_by_default = false;
base.max_atomic_width = Some(64);
// Ferrocene elects to use lld as the linker on this target.
// Upstream still uses ld.
//
// Setting Lld::Yes causes `-fuse-ld=lld` to be added to the linker args
// (and by linker I mean `cc` as the linker as we use Cc::Yes)
base.linker_flavor = LinkerFlavor::Gnu(Cc::Yes, Lld::Yes);
// This setting causes `-B path/to/gcc-ld` to be added to the linker args.
// This means that the `ld.lld` wrapper for `rust-lld` appears in the
// path that `cc` uses to find `ld.lld` (also the path used for `cpp` and
// `cc1`, but we don't supply those so it goes back to the defaults for
// those tools).
base.link_self_contained = crate::spec::LinkSelfContainedDefault::with_linker();
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
base.stack_probes = StackProbeType::Inline;
base.static_position_independent_executables = true;
Expand Down
Loading