mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Make "./mach geckolib" use the stable Rust compiler
This commit is contained in:
parent
6ae5598a5c
commit
26a78817c1
2 changed files with 6 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
||||||
/ports/android/libs
|
/ports/android/libs
|
||||||
/ports/android/local.properties
|
/ports/android/local.properties
|
||||||
/ports/android/obj
|
/ports/android/obj
|
||||||
|
/ports/geckolib/target
|
||||||
/python/_virtualenv
|
/python/_virtualenv
|
||||||
/python/tidy/servo_tidy.egg-info
|
/python/tidy/servo_tidy.egg-info
|
||||||
*~
|
*~
|
||||||
|
|
|
@ -356,6 +356,7 @@ class MachCommands(CommandBase):
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Build in release mode')
|
help='Build in release mode')
|
||||||
def build_geckolib(self, 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_bootstrapped()
|
||||||
|
|
||||||
ret = None
|
ret = None
|
||||||
|
@ -367,11 +368,12 @@ class MachCommands(CommandBase):
|
||||||
if release:
|
if release:
|
||||||
opts += ["--release"]
|
opts += ["--release"]
|
||||||
|
|
||||||
build_start = time()
|
|
||||||
env = self.build_env()
|
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")):
|
with cd(path.join("ports", "geckolib")):
|
||||||
ret = call(["cargo", "build"] + opts,
|
ret = call(["cargo", "build"] + opts, env=env, verbose=verbose)
|
||||||
env=env, verbose=verbose)
|
|
||||||
elapsed = time() - build_start
|
elapsed = time() - build_start
|
||||||
|
|
||||||
# Generate Desktop Notification if elapsed-time > some threshold value
|
# Generate Desktop Notification if elapsed-time > some threshold value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue