about summary refs log tree commit diff
path: root/src/comp/front
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-06-28 08:21:13 -0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-06-28 08:21:13 -0400
commitecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca (patch)
tree47a496b72d9052e829b476028d2a678d7eda6908 /src/comp/front
parent663aa7663533b6b1cbeb2229c95b4bbde1a5d18e (diff)
downloadrust-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/front')
-rw-r--r--src/comp/front/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index d153f0273f8..90f8fedb6dc 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -1920,7 +1920,7 @@ fn parse_item_native_mod(&parser p, vec[ast::attribute] attrs) -> @ast::item {
         expect(p, token::EQ);
         native_name = parse_str(p);
     } else {
-        native_name = "";
+        native_name = id;
     }
     expect(p, token::LBRACE);
     auto m = parse_native_mod_items(p, native_name, abi);