about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-01-01 01:00:24 +0000
committerbors <bors@rust-lang.org>2018-01-01 01:00:24 +0000
commit037bc651e56ca0bb92c053b31b87db5fa0dda22c (patch)
tree22be87a3544d53464c653404a417adc59f35d1da /src/libsyntax/parse
parentad30f5476df401abcab4c28f482091bb6d68e866 (diff)
parent7c13fa37305cf1034328f1e90d1ecf967137ed7c (diff)
downloadrust-037bc651e56ca0bb92c053b31b87db5fa0dda22c.tar.gz
rust-037bc651e56ca0bb92c053b31b87db5fa0dda22c.zip
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.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions