From 6548325bd294b55141b1663c5ee91a6a28702962 Mon Sep 17 00:00:00 2001 From: UK992 Date: Fri, 5 Aug 2016 22:47:27 +0200 Subject: Run git command only with mach build commands --- python/servo/build_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/servo/build_commands.py') diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index df727e2776f..275b2309f2e 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -209,7 +209,7 @@ class MachCommands(CommandBase): opts += ["--features", "%s" % ' '.join(features)] build_start = time() - env = self.build_env(target=target) + env = self.build_env(target=target, is_build=True) if android: # Build OpenSSL for android @@ -299,7 +299,7 @@ class MachCommands(CommandBase): build_start = time() with cd(path.join("ports", "cef")): ret = call(["cargo", "build"] + opts, - env=self.build_env(), verbose=verbose) + env=self.build_env(is_build=True), verbose=verbose) elapsed = time() - build_start # Generate Desktop Notification if elapsed-time > some threshold value @@ -334,7 +334,7 @@ class MachCommands(CommandBase): if release: opts += ["--release"] - env = self.build_env() + env = self.build_env(is_build=True) env["CARGO_TARGET_DIR"] = path.join(self.context.topdir, "target", "geckolib").encode("UTF-8") build_start = time() -- cgit v1.2.3