mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Do not pass features when running ./mach test-unit
This commit is contained in:
parent
7d50362c72
commit
4d8c227774
1 changed files with 3 additions and 4 deletions
|
@ -876,8 +876,8 @@ class CommandBase(object):
|
||||||
if self.cross_compile_target:
|
if self.cross_compile_target:
|
||||||
args += ["--target", self.cross_compile_target]
|
args += ["--target", self.cross_compile_target]
|
||||||
|
|
||||||
features = list(self.features)
|
|
||||||
if "-p" not in cargo_args: # We're building specific package, that may not have features
|
if "-p" not in cargo_args: # We're building specific package, that may not have features
|
||||||
|
features = list(self.features)
|
||||||
if self.config["build"]["debug-mozjs"] or debug_mozjs:
|
if self.config["build"]["debug-mozjs"] or debug_mozjs:
|
||||||
features.append("debugmozjs")
|
features.append("debugmozjs")
|
||||||
|
|
||||||
|
@ -902,12 +902,11 @@ class CommandBase(object):
|
||||||
features.append("webgl-backtrace")
|
features.append("webgl-backtrace")
|
||||||
if self.config["build"]["dom-backtrace"]:
|
if self.config["build"]["dom-backtrace"]:
|
||||||
features.append("dom-backtrace")
|
features.append("dom-backtrace")
|
||||||
|
args += ["--features", " ".join(features)]
|
||||||
|
|
||||||
if with_debug_assertions or self.config["build"]["debug-assertions"]:
|
if with_debug_assertions or self.config["build"]["debug-assertions"]:
|
||||||
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C debug_assertions"
|
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C debug_assertions"
|
||||||
|
|
||||||
assert "--features" not in cargo_args
|
|
||||||
args += ["--features", " ".join(features)]
|
|
||||||
|
|
||||||
if self.is_uwp_build:
|
if self.is_uwp_build:
|
||||||
cargo_args += ["-Z", "build-std"]
|
cargo_args += ["-Z", "build-std"]
|
||||||
return self.call_rustup_run(["cargo", command] + args + cargo_args, env=env, verbose=verbose)
|
return self.call_rustup_run(["cargo", command] + args + cargo_args, env=env, verbose=verbose)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue