Skip to content

Commit c8427e4

Browse files
author
Elly Jones
committed
cargo: fix lib detection logic
1 parent b7e30bc commit c8427e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
314314
let exec_suffix = os::exec_suffix();
315315
for ct: str in created {
316316
if (exec_suffix != "" && str::ends_with(ct, exec_suffix)) ||
317-
(exec_suffix == "" && !str::starts_with(ct, "lib")) {
317+
(exec_suffix == "" && !str::starts_with(ct, "./lib")) {
318318
log #fmt[" bin: %s", ct];
319319
// FIXME: need libstd fs::copy or something
320320
run::run_program("cp", [ct, c.bindir]);

0 commit comments

Comments
 (0)