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
|
|
@ -125,6 +125,9 @@ obj session(ast::crate_num cnum,
|
|||
}
|
||||
fn has_external_crate(int num) -> bool { ret crates.contains_key(num); }
|
||||
fn add_used_library(&str lib) {
|
||||
if (lib == "") {
|
||||
ret;
|
||||
}
|
||||
// A program has a small number of libraries, so a vector is probably
|
||||
// a good data structure in here.
|
||||
for (str l in used_libraries) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue