diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-08-10 08:57:24 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-08-10 08:59:54 -0400 |
commit | f873db5ab0371b624da23325e12a39d05b72c92b (patch) | |
tree | 41e804149bc48eb75e1307937ba669ffd6a3cd08 /python/servo/build_commands.py | |
parent | 53748129321d2c439590368895765f7c93aee8c7 (diff) | |
download | servo-f873db5ab0371b624da23325e12a39d05b72c92b.tar.gz servo-f873db5ab0371b624da23325e12a39d05b72c92b.zip |
Allow Servo tests to be built/run with --release mode
Fixes #5075
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 12f0c909ddd..0440976c280 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -314,11 +314,15 @@ class MachCommands(CommandBase): @CommandArgument('--jobs', '-j', default=None, help='Number of jobs to run in parallel') - def build_tests(self, jobs=None): + @CommandArgument('--release', default=False, action="store_true", + help="Build tests with release mode") + def build_tests(self, jobs=None, release=False): self.ensure_bootstrapped() args = ["cargo", "test", "--no-run"] if is_headless_build(): args += ["--no-default-features", "--features", "headless"] + if release: + args += ["--release"] return subprocess.call( args, env=self.build_env(), cwd=self.servo_crate()) |