diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-02-10 12:09:25 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-03-03 20:21:35 -0800 |
| commit | 0129b01a41a062f82909cecdfd0cc7f0093c71f8 (patch) | |
| tree | 7213eec523af5741bc99ac39388d8a2f83a16c97 /src/libstd/sys/unix/process/process_unix.rs | |
| parent | d69b24805b5071e5ec9e62d2777a761723644144 (diff) | |
| download | rust-0129b01a41a062f82909cecdfd0cc7f0093c71f8.tar.gz rust-0129b01a41a062f82909cecdfd0cc7f0093c71f8.zip | |
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.
Diffstat (limited to 'src/libstd/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
