mach: Don't overwrite RUSTFLAGS when enabling debug assertions

This commit is contained in:
Matt Brubeck 2017-09-29 09:50:24 -07:00
parent 9ffd2b8c9e
commit c4aadfadae

View file

@ -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"]