From 75adeaadb841fdd238e88d90f1da499c1413458f Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 10 Jun 2012 01:49:59 -0700 Subject: [PATCH] cargo: Do builds under ./.cargo/work in local mode Doing builds outside of the cwd is breaking rustc's logic for locating crates in ./.cargo/lib. Ideally, cargo would not be changing directories at all. --- src/cargo/cargo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs index 7514f37cc051..94efae2442f8 100644 --- a/src/cargo/cargo.rs +++ b/src/cargo/cargo.rs @@ -661,7 +661,7 @@ fn configure(opts: options) -> cargo { installdir: p, bindir: path::connect(p, "bin"), libdir: path::connect(p, "lib"), - workdir: path::connect(home, "work"), + workdir: path::connect(p, "work"), sourcedir: path::connect(home, "sources"), sources: sources, mut current_install: "",