Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a stable compiler for build-geckolib #12319

Merged
merged 8 commits into from Jul 9, 2016

Make "./mach geckolib" use the stable Rust compiler

  • Loading branch information
SimonSapin committed Jul 8, 2016
commit 26a78817c1e5d720ed4923be984d962df2f6774f
@@ -6,6 +6,7 @@
/ports/android/libs
/ports/android/local.properties
/ports/android/obj
/ports/geckolib/target
/python/_virtualenv
/python/tidy/servo_tidy.egg-info
*~
@@ -356,6 +356,7 @@ def build_cef(self, jobs=None, verbose=False, release=False):
action='store_true',
help='Build in release mode')
def build_geckolib(self, jobs=None, verbose=False, release=False):
self.set_use_stable_rust()
self.ensure_bootstrapped()

ret = None
@@ -367,11 +368,12 @@ def build_geckolib(self, jobs=None, verbose=False, release=False):
if release:
opts += ["--release"]

build_start = time()
env = self.build_env()
env["CARGO_TARGET_DIR"] = path.join(self.context.topdir, "ports/geckolib/target")

build_start = time()
with cd(path.join("ports", "geckolib")):
ret = call(["cargo", "build"] + opts,
env=env, verbose=verbose)
ret = call(["cargo", "build"] + opts, env=env, verbose=verbose)
elapsed = time() - build_start

# Generate Desktop Notification if elapsed-time > some threshold value
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.