aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2023-08-30 08:09:14 +0200
committerGitHub <noreply@github.com>2023-08-30 06:09:14 +0000
commit5e600882760bdc86bdb13fcd5b4f62e781ad53c9 (patch)
tree6c663e98797ac569efc7650d880fab526493ab58 /python/servo/command_base.py
parent9aa3f7487861d3bd5fceebfe5aa2e4b595e3ea14 (diff)
downloadservo-5e600882760bdc86bdb13fcd5b4f62e781ad53c9.tar.gz
servo-5e600882760bdc86bdb13fcd5b4f62e781ad53c9.zip
Always dummy (#30240)
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 09da1491a8f..8235829aa97 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -461,10 +461,9 @@ class CommandBase(object):
"""Return an extended environment dictionary."""
env = os.environ.copy()
- if "media-dummy" not in self.features:
- servo.platform.get().set_gstreamer_environment_variables_if_necessary(
- env, cross_compilation_target=self.cross_compile_target,
- check_installation=is_build)
+ servo.platform.get().set_gstreamer_environment_variables_if_necessary(
+ env, cross_compilation_target=self.cross_compile_target,
+ check_installation=is_build)
effective_target = self.cross_compile_target or servo.platform.host_triple()
if "msvc" in effective_target:
@@ -850,7 +849,8 @@ class CommandBase(object):
media_stack = "gstreamer"
else:
media_stack = "dummy"
- self.features += ["media-" + media_stack]
+ if media_stack != "dummy":
+ self.features += ["media-" + media_stack]
def run_cargo_build_like_command(
self, command: str, cargo_args: List[str],