about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-17 13:36:43 -0800
committerbors <bors@rust-lang.org>2014-01-17 13:36:43 -0800
commitaa67e13498936c42581f70daaf3b6d028426dde6 (patch)
treefbefb7179c52c41df0a14f3c4148e2616c817ac4 /src
parent9bf85a250c93fbd5e65440bba6d300908fb08b9a (diff)
parent11dcd9a0970037042331ffba5e3b2c787d7ff614 (diff)
downloadrust-aa67e13498936c42581f70daaf3b6d028426dde6.tar.gz
rust-aa67e13498936c42581f70daaf3b6d028426dde6.zip
auto merge of #11604 : alexcrichton/rust/issue-11162, r=brson
Apparently this isn't necessary, and it's just causing problems.

Closes #11162
Diffstat (limited to 'src')
-rw-r--r--src/librustc/back/link.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs
index 65195468ed3..9e1e1f7bd34 100644
--- a/src/librustc/back/link.rs
+++ b/src/librustc/back/link.rs
@@ -924,10 +924,13 @@ fn link_rlib(sess: Session,
                 fs::unlink(&bc);
             }
 
-            // Now that we've added files, some platforms need us to now update
-            // the symbol table in the archive (because some platforms die when
-            // adding files to the archive without symbols).
-            a.update_symbols();
+            // After adding all files to the archive, we need to update the
+            // symbol table of the archive. This currently dies on OSX (see
+            // #11162), and isn't necessary there anyway
+            match sess.targ_cfg.os {
+                abi::OsMacos => {}
+                _ => { a.update_symbols(); }
+            }
         }
 
         None => {}