File tree 1 file changed +0
-12
lines changed
src/librustc_codegen_ssa/back
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -596,18 +596,6 @@ impl<'a> Linker for MsvcLinker<'a> {
596
596
// This will cause the Microsoft linker to embed .natvis info into the PDB file
597
597
let natvis_dir_path = self . sess . sysroot . join ( "lib\\ rustlib\\ etc" ) ;
598
598
if let Ok ( natvis_dir) = fs:: read_dir ( & natvis_dir_path) {
599
- // LLVM 5.0.0's lld-link frontend doesn't yet recognize, and chokes
600
- // on, the /NATVIS:... flags. LLVM 6 (or earlier) should at worst ignore
601
- // them, eventually mooting this workaround, per this landed patch:
602
- // https://github.com/llvm-mirror/lld/commit/27b9c4285364d8d76bb43839daa100
603
- if let Some ( ref linker_path) = self . sess . opts . cg . linker {
604
- if let Some ( linker_name) = Path :: new ( & linker_path) . file_stem ( ) {
605
- if linker_name. to_str ( ) . unwrap ( ) . to_lowercase ( ) == "lld-link" {
606
- self . sess . warn ( "not embedding natvis: lld-link may not support the flag" ) ;
607
- return ;
608
- }
609
- }
610
- }
611
599
for entry in natvis_dir {
612
600
match entry {
613
601
Ok ( entry) => {
You can’t perform that action at this time.
0 commit comments