Use "" in the native_name as an indication that no extra options have to
be passed to the "linker". Use that for libc.
This commit is contained in:
parent
663aa76635
commit
ecc080ed0b
10 changed files with 16 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue