aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devenv_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r--python/servo/devenv_commands.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py
index 8fde8e3b361..56f02b1cb55 100644
--- a/python/servo/devenv_commands.py
+++ b/python/servo/devenv_commands.py
@@ -33,6 +33,8 @@ class MachCommands(CommandBase):
if not params:
params = []
+ self.ensure_bootstrapped()
+
if self.context.topdir == getcwd():
with cd(path.join('components', 'servo')):
return call(["cargo"] + params, env=self.build_env())
@@ -49,6 +51,7 @@ class MachCommands(CommandBase):
params = []
self.set_use_stable_rust()
+ self.ensure_bootstrapped()
env = self.build_env(geckolib=True)
if self.context.topdir == getcwd():
@@ -113,6 +116,9 @@ class MachCommands(CommandBase):
def rustc(self, params):
if params is None:
params = []
+
+ self.ensure_bootstrapped()
+
return call(["rustc"] + params, env=self.build_env())
@Command('rustc-geckolib',
@@ -126,6 +132,7 @@ class MachCommands(CommandBase):
params = []
self.set_use_stable_rust()
+ self.ensure_bootstrapped()
env = self.build_env(geckolib=True)
return call(["rustc"] + params, env=env)