Make build system more independent of current directory.

This commit is contained in:
Simon Sapin 2014-12-02 14:33:23 -08:00
parent ff4877b473
commit cc4ea7507f
8 changed files with 14 additions and 9 deletions

View file

@ -71,7 +71,7 @@ class MachCommands(CommandBase):
def doc(self, params):
self.ensure_bootstrapped()
return subprocess.call(["cargo", "doc"] + params,
env=self.build_env(), cwd="components/servo")
env=self.build_env(), cwd=self.servo_crate())
@Command('serve-docs',
description='Locally serve Servo and Rust documentation',