Skip to content


Browse files Browse the repository at this point in the history
Override always 'CARGO_HOME' env variable.
This use always `cargo-home-dir` in `/.servobuild`
even if you set `CARGO_HOME` in your shell.

If you use [racer][racer] with [rustup (][rustup],
you may set `CARGO_HOME` env variable.
Then the previous code would be a problem which does not use
`cargo-home-dir` in `/.servobuild`.

  • Loading branch information
tetsuharuohzeki committed May 9, 2016
1 parent 58a9b31 commit cb90f22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/servo/
Expand Up @@ -293,8 +293,7 @@ def build_env(self, gonk=False, hosts_file_path=None):
if extra_path:
env["PATH"] = "%s%s%s" % (os.pathsep.join(extra_path), os.pathsep, env["PATH"])

if "CARGO_HOME" not in env:
env["CARGO_HOME"] = self.config["tools"]["cargo-home-dir"]
env["CARGO_HOME"] = self.config["tools"]["cargo-home-dir"]

if "CARGO_TARGET_DIR" not in env:
env["CARGO_TARGET_DIR"] = path.join(self.context.topdir, "target")
Expand Down

0 comments on commit cb90f22

Please sign in to comment.