Auto merge of #16941 - upsuper:bug1336540, r=emilio

Move config info from build_gecko.rs to Gecko code

This is the Servo side change for [bug 1336540](https://bugzilla.mozilla.org/show_bug.cgi?id=1336540)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16941)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-05-18 20:42:55 -05:00 committed by GitHub
commit 0ad0641872
5 changed files with 248 additions and 586 deletions

View file

@ -407,9 +407,6 @@ class MachCommands(CommandBase):
@Command('build-geckolib',
description='Build a static library of components used by Gecko',
category='build')
@CommandArgument('--with-gecko',
default=None,
help='Build with Gecko dist directory')
@CommandArgument('--jobs', '-j',
default=None,
help='Number of jobs to run in parallel')
@ -419,7 +416,7 @@ class MachCommands(CommandBase):
@CommandArgument('--release', '-r',
action='store_true',
help='Build in release mode')
def build_geckolib(self, with_gecko=None, jobs=None, verbose=False, release=False):
def build_geckolib(self, jobs=None, verbose=False, release=False):
self.set_use_stable_rust()
self.ensure_bootstrapped()
self.ensure_clobbered()
@ -429,9 +426,6 @@ class MachCommands(CommandBase):
ret = None
opts = []
features = []
if with_gecko is not None:
features += ["bindgen"]
env["MOZ_DIST"] = path.abspath(path.expanduser(with_gecko))
if jobs is not None:
opts += ["-j", jobs]
if verbose: