rust/src/librustc_back
Alex Crichton 0129b01a41 rustc: Tweak default linker selection
This commit refactors how the path to the linker that we're going to invoke is
selected. Previously all targets listed *both* a `LinkerFlavor` and a `linker`
(path) option, but this meant that whenever you changed one you had to change
the other. The purpose of this commit is to avoid coupling these where possible.

Target specifications now only unconditionally define the *flavor* of the linker
that they're using by default. If not otherwise specified each flavor now
implies a particular default linker to run. As a result, this means that if
you'd like to test out `ld` for example you should be able to do:

    rustc -Z linker-flavor=ld foo.rs

whereas previously you had to do

    rustc -Z linker-flavor=ld -C linker=ld foo.rs

This will hopefully make it a bit easier to tinker around with variants that
should otherwise be well known to work, for example with LLD, `ld` on OSX, etc.
2018-03-03 20:21:35 -08:00
..
target rustc: Tweak default linker selection 2018-03-03 20:21:35 -08:00
build.rs cleanup: rustc doesn't use an external archiver 2017-10-09 22:36:08 +03:00
Cargo.toml Try to fix a perf regression by updating log 2018-01-07 16:54:05 +01:00
lib.rs rustc: Tweak default linker selection 2018-03-03 20:21:35 -08:00
README.md rework the README.md for rustc and add other readmes 2017-09-19 09:00:59 -04:00

NB: This crate is part of the Rust compiler. For an overview of the compiler as a whole, see the README.md file found in librustc.

librustc_back contains some very low-level details that are specific to different LLVM targets and so forth.