]> git.lizzy.rs Git - rust.git/commit
Auto merge of #47052 - fschutt:master, r=estebank
authorbors <bors@rust-lang.org>
Mon, 1 Jan 2018 01:00:24 +0000 (01:00 +0000)
committerbors <bors@rust-lang.org>
Mon, 1 Jan 2018 01:00:24 +0000 (01:00 +0000)
commit037bc651e56ca0bb92c053b31b87db5fa0dda22c
tree22be87a3544d53464c653404a417adc59f35d1da
parentad30f5476df401abcab4c28f482091bb6d68e866
parent7c13fa37305cf1034328f1e90d1ecf967137ed7c
Auto merge of #47052 - fschutt:master, r=estebank

Improved error messages for linking failure

Partial fix for #46998

It's unnecessary to print the linker options if there is no linker installed in the first place. Currently, for libraries, the output is still printed, but that should be cleaned up in the future. If you don't have gcc or g++ installed, so that no linker is installed on the system, the output is now this:

```
$ ./rustc hello.rs
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

error: aborting due to previous error
```

For libraries, the linker arguments are still printed, but they should be cleaned up in further commits.