diff options
| author | bors <bors@rust-lang.org> | 2018-01-01 01:00:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-01-01 01:00:24 +0000 |
| commit | 037bc651e56ca0bb92c053b31b87db5fa0dda22c (patch) | |
| tree | 22be87a3544d53464c653404a417adc59f35d1da /src/test | |
| parent | ad30f5476df401abcab4c28f482091bb6d68e866 (diff) | |
| parent | 7c13fa37305cf1034328f1e90d1ecf967137ed7c (diff) | |
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/test')
| -rw-r--r-- | src/test/compile-fail/issue-10755.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/issue-10755.rs b/src/test/compile-fail/issue-10755.rs index 87faff27195..57915bce456 100644 --- a/src/test/compile-fail/issue-10755.rs +++ b/src/test/compile-fail/issue-10755.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -C linker=llllll -Z linker-flavor=ld -// error-pattern: the linker `llllll` +// error-pattern: linker `llllll` not found fn main() { } |
