diff options
| author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-06-28 08:21:13 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-06-28 08:21:13 -0400 |
| commit | ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca (patch) | |
| tree | 47a496b72d9052e829b476028d2a678d7eda6908 /src/comp/metadata | |
| parent | 663aa7663533b6b1cbeb2229c95b4bbde1a5d18e (diff) | |
| download | rust-ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca.tar.gz rust-ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca.zip | |
Use "" in the native_name as an indication that no extra options have to
be passed to the "linker". Use that for libc.
Diffstat (limited to 'src/comp/metadata')
| -rw-r--r-- | src/comp/metadata/creader.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/comp/metadata/creader.rs b/src/comp/metadata/creader.rs index 9772e7eb817..14118da3c5c 100644 --- a/src/comp/metadata/creader.rs +++ b/src/comp/metadata/creader.rs @@ -203,18 +203,12 @@ fn visit_view_item(env e, &@ast::view_item i) { fn visit_item(env e, &@ast::item i) { alt (i.node) { case (ast::item_native_mod(?m)) { - auto name; - if (m.native_name == "" ) { - name = i.ident; - } else { - name = m.native_name; - } alt (m.abi) { case (ast::native_abi_rust) { - e.sess.add_used_library(name); + e.sess.add_used_library(m.native_name); } case (ast::native_abi_cdecl) { - e.sess.add_used_library(name); + e.sess.add_used_library(m.native_name); } case (ast::native_abi_llvm) { } |
