aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devenv_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-11-30 16:52:08 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-12-07 13:50:10 +0100
commit1f2b66e2d77ffbe75f9d7487db0b90fa724c4692 (patch)
tree82c657683f9d03a9975f1ed986ea19e969f25158 /python/servo/devenv_commands.py
parent2a5c4133f9da508949e875ed41b60a2d041e17c7 (diff)
downloadservo-1f2b66e2d77ffbe75f9d7487db0b90fa724c4692.tar.gz
servo-1f2b66e2d77ffbe75f9d7487db0b90fa724c4692.zip
Use workspace.default-members to specify default crates for 'cargo build'
… and 'cargo test', etc. Include Servo and its unit tests, but not Stylo because that would try to compile the style crate with incompatible feature flags: https://github.com/rust-lang/cargo/issues/4463 `workspace.default-members` was added in https://github.com/rust-lang/cargo/pull/4743. Older Cargo versions ignore it.
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r--python/servo/devenv_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py
index e6cb91bd20a..1ddba4af445 100644
--- a/python/servo/devenv_commands.py
+++ b/python/servo/devenv_commands.py
@@ -94,7 +94,7 @@ class MachCommands(CommandBase):
'params', default=None, nargs='...',
help="Command-line arguments to be passed through to cargo check")
def check_geckolib(self, params):
- return self.run_cargo(params, check=True, geckolib=True)
+ return self.run_cargo(["-p", "geckoservo"] + (params or []), check=True, geckolib=True)
@Command('cargo-update',
description='Same as update-cargo',