aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorUK992 <urbankrajnc92@gmail.com>2016-08-05 22:47:27 +0200
committerUK992 <urbankrajnc92@gmail.com>2016-08-05 22:47:27 +0200
commit6548325bd294b55141b1663c5ee91a6a28702962 (patch)
treeae2e97cc36619f502ab4bead9c3396e39b2a62c1 /python/servo/build_commands.py
parentfc4fc773b4c62fb1b63f7f9aabea9fa44283e6ad (diff)
downloadservo-6548325bd294b55141b1663c5ee91a6a28702962.tar.gz
servo-6548325bd294b55141b1663c5ee91a6a28702962.zip
Run git command only with mach build commands
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py6
1 files changed, 3 insertions, 3 deletions
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()