cargo: fix lib detection logic

This commit is contained in:
Elly Jones 2011-12-16 22:39:33 -05:00
parent b7e30bc4c5
commit c8427e4ffd

View file

@ -314,7 +314,7 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
let exec_suffix = os::exec_suffix();
for ct: str in created {
if (exec_suffix != "" && str::ends_with(ct, exec_suffix)) ||
(exec_suffix == "" && !str::starts_with(ct, "lib")) {
(exec_suffix == "" && !str::starts_with(ct, "./lib")) {
log #fmt[" bin: %s", ct];
// FIXME: need libstd fs::copy or something
run::run_program("cp", [ct, c.bindir]);