aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-05-15 22:09:31 -0400
committerJosh Matthews <josh@joshmatthews.net>2019-05-16 17:07:03 -0400
commit1990a22a1b9dd6641b9cc34bb76d8749c1096cd6 (patch)
treebb32a06edfda58c80dd2408bd55b6bf7778f415e /python/servo/build_commands.py
parent50bce03b4b087dd2e647ba707bb6baf55e5cf49f (diff)
downloadservo-1990a22a1b9dd6641b9cc34bb76d8749c1096cd6.tar.gz
servo-1990a22a1b9dd6641b9cc34bb76d8749c1096cd6.zip
Raise an error if ML SDK doesn't exist.
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index d6170abfb1e..05d832e3403 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -518,6 +518,8 @@ class MachCommands(CommandBase):
ml_sdk = env.get("MAGICLEAP_SDK")
if not ml_sdk:
raise Exception("Magic Leap builds need the MAGICLEAP_SDK environment variable")
+ if not os.path.exists(ml_sdk):
+ raise Exception("Path specified by MAGICLEAP_SDK does not exist.")
ml_support = path.join(self.get_top_dir(), "support", "magicleap")