aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2017-09-29 09:50:24 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2017-09-29 09:53:16 -0700
commitc4aadfadaec48e979366514b499c655225c35946 (patch)
tree7bcd4be8b2417b63186cd5eb1bb83dcc40ee87f3 /python/servo/build_commands.py
parent9ffd2b8c9e2b897f12daa5eac48a76a0c10c60c9 (diff)
downloadservo-c4aadfadaec48e979366514b499c655225c35946.tar.gz
servo-c4aadfadaec48e979366514b499c655225c35946.zip
mach: Don't overwrite RUSTFLAGS when enabling debug assertions
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 63b7ebd19fd..e78ff374daa 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -243,7 +243,7 @@ class MachCommands(CommandBase):
env = self.build_env(target=target, is_build=True)
if with_debug_assertions:
- env["RUSTFLAGS"] = "-C debug_assertions"
+ env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C debug_assertions"
if android:
android_platform = self.config["android"]["platform"]