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
|
|
@ -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) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue