mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Fix the build on Ubuntu 20.04 (#31019)
Ubuntu 20.04 doesn't have a new enough version of GStreamer, so automatically disable media when running on that platform. This also cleans up the media detection a bit, putting the result in a `enable-media` variable and moving some of the logic into the build scripts themselves rather than the platform module.
This commit is contained in:
parent
d0ce48db06
commit
79a0f76d26
6 changed files with 38 additions and 45 deletions
|
@ -258,9 +258,7 @@ class MachCommands(CommandBase):
|
|||
if nocapture:
|
||||
args += ["--", "--nocapture"]
|
||||
|
||||
# We are setting is_build here to true, because running `cargo test` can trigger builds.
|
||||
env = self.build_env(is_build=True)
|
||||
|
||||
env = self.build_env()
|
||||
return self.run_cargo_build_like_command(
|
||||
"bench" if bench else "test",
|
||||
args,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue