mirror of
https://github.com/servo/servo.git
synced 2025-07-03 21:43:41 +01:00
Get the build env before change dir
Otherwise, build_env may fail to find git information.
This commit is contained in:
parent
6389107e19
commit
064f1adb78
1 changed files with 2 additions and 1 deletions
|
@ -368,9 +368,10 @@ class MachCommands(CommandBase):
|
|||
opts += ["--release"]
|
||||
|
||||
build_start = time()
|
||||
env = self.build_env()
|
||||
with cd(path.join("ports", "geckolib")):
|
||||
ret = call(["cargo", "build"] + opts,
|
||||
env=self.build_env(), verbose=verbose)
|
||||
env=env, verbose=verbose)
|
||||
elapsed = time() - build_start
|
||||
|
||||
# Generate Desktop Notification if elapsed-time > some threshold value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue