Skip to content

Commit

Permalink
cargo: fix lib detection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Elly Jones committed Dec 17, 2011
1 parent b7e30bc commit c8427e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/cargo.rs
Expand Up @@ -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]);
Expand Down

0 comments on commit c8427e4

Please sign in to comment.