diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-09-19 21:50:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-19 21:50:22 +0200 |
| commit | 64fa14e97705d4bb72c410a60a2f48cf64603d31 (patch) | |
| tree | 10113bccafb2725bdf1aa5c6d4b8cbecec494204 /src/rustllvm/RustWrapper.cpp | |
| parent | 6e6a474357c9c8cbbd7013735a6dad00562fc306 (diff) | |
| parent | 995f0bdb9b999056667e6dff7ebc9712ac79cc5b (diff) | |
| download | rust-64fa14e97705d4bb72c410a60a2f48cf64603d31.tar.gz rust-64fa14e97705d4bb72c410a60a2f48cf64603d31.zip | |
Rollup merge of #44626 - MaulingMonkey:lld-link-natvis-regression-fix, r=michaelwoerister
Skip passing /natvis to lld-link until supported. ### Overview Teaching rustc about MSVC's undocumented linker flag, /NATVIS, broke rustc's compatability with LLVM's `lld-link` frontend, as it does not recognize the flag. This pull request works around the problem by excluding `lld-link` by name. @retep998 discovered this regression. ### Possible Issues - Other linkers that try to be compatible with the MSVC linker flavor may also be broken and in need of workarounds. - Warning about the workaround may be overkill for a minor reduction in debug functionality. - Depending on how long this workaround sticks around, it may eventually be preferred to version check `lld-link` instead of assuming all versions are incompatible. ### Relevant issues * Broke in https://github.com/rust-lang/rust/pull/43221 Embed MSVC .natvis files into .pdbs and mangle debuginfo for &str, *T, and [T]. * LLVM patched in https://github.com/llvm-mirror/lld/commit/27b9c4285364d8d76bb43839daa100c2f80f8329 to ignore the flag instead of erroring. r? @michaelwoerister
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
