Bug 1370535 - Provide a useful error message when passing --enable-geckodriver in artifact bulds.
MozReview-Commit-ID: 88TlmFAdOuf
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -1125,16 +1125,20 @@ def geckodriver(enable, automation, comp
is set, but we also provide the --enable-geckodriver option for
developers to use.
At the present time, we want individual developers to be able to
opt-in to building geckodriver locally, and for it to be enabled by
default on supported CI build platforms.
"""
if enable:
+ if not compile_env:
+ die("--enable-geckodriver is not available without a compile "
+ "environment. A geckodriver binary will be downloaded during "
+ "an artifact build by default where available.")
return True
if enable.origin == 'default':
linux32 = target.kernel == 'Linux' and target.cpu == 'x86'
broken_platforms = cross_compile or linux32 or hazard
if automation and compile_env and not broken_platforms:
return True