aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-09-07 17:17:11 +0530
committerManish Goregaokar <manishsmail@gmail.com>2018-09-11 19:34:38 +0530
commit4d7d63ea95faf8f996cd947171adfe8c68a7af13 (patch)
tree69b43346aaf6c41c4a1752c3388f84b3f2b27459 /python/servo/command_base.py
parenta380c5fd6e5e9eb2e6c54a77ce3d88f30dc4089d (diff)
downloadservo-4d7d63ea95faf8f996cd947171adfe8c68a7af13.tar.gz
servo-4d7d63ea95faf8f996cd947171adfe8c68a7af13.zip
Hande systems without pkg-config
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 57865bac55d..d5269de42d2 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -481,7 +481,12 @@ class CommandBase(object):
return path.join(bin_folder, "servo{}".format(BIN_SUFFIX))
def needs_gstreamer_env(self, target):
- if check_gstreamer_lib():
+ try:
+ if check_gstreamer_lib():
+ return False
+ except:
+ # Some systems don't have pkg-config; we can't probe in this case
+ # and must hope for the best
return False
if "x86_64" not in (target or host_triple()):
# We don't build gstreamer for non-x86_64 yet