mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
commit
ff10deb814
1 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
from os import path
|
from os import path, getcwd
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
@ -23,7 +23,12 @@ class MachCommands(CommandBase):
|
||||||
def cargo(self, params):
|
def cargo(self, params):
|
||||||
if not params:
|
if not params:
|
||||||
params = []
|
params = []
|
||||||
return subprocess.call(["cargo"] + params,
|
|
||||||
|
if self.context.topdir == getcwd():
|
||||||
|
with cd(path.join('components', 'servo')):
|
||||||
|
return subprocess.call(["cargo"] + params,
|
||||||
|
env=self.build_env())
|
||||||
|
return subprocess.call(['cargo'] + params,
|
||||||
env=self.build_env())
|
env=self.build_env())
|
||||||
|
|
||||||
@Command('update-cargo',
|
@Command('update-cargo',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue