]> git.lizzy.rs Git - rust.git/commitdiff
[cargo] argh
authorElly Jones <elly@leptoquark.net>
Thu, 19 Jan 2012 03:52:00 +0000 (22:52 -0500)
committerElly Jones <elly@leptoquark.net>
Thu, 19 Jan 2012 03:52:00 +0000 (22:52 -0500)
src/cargo/cargo.rs

index c5cfca01b8af145117681daa32694f372e6cd839..afab69443ed972b66cbe51d9ae3517f84e7247f2 100644 (file)
@@ -376,26 +376,6 @@ fn test_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
     }
 }
 
-fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
-    let buildpath = fs::connect(_path, "/build");
-    need_dir(buildpath);
-    #debug("Installing: %s -> %s", cf, buildpath);
-    let p = run::program_output("rustc", ["--out-dir", buildpath, cf]);
-    if p.status != 0 {
-        error(#fmt["rustc failed: %d\n%s\n%s", p.status, p.err, p.out]);
-        ret;
-    }
-    let new = fs::list_dir(buildpath);
-    let exec_suffix = os::exec_suffix();
-    for ct: str in new {
-        if (exec_suffix != "" && str::ends_with(ct, exec_suffix)) ||
-            (exec_suffix == "" && !str::starts_with(ct, "./lib")) {
-            // FIXME: need libstd fs::copy or something
-            run::run_program(ct, []);
-        }
-    }
-}
-
 fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
     let buildpath = fs::connect(_path, "/build");
     need_dir(buildpath);