diff options
author | Lars Bergstrom <lars@lars.com> | 2016-10-05 09:54:28 -0500 |
---|---|---|
committer | Lars Bergstrom <lars@lars.com> | 2016-10-05 09:54:28 -0500 |
commit | e16c7ec861e75a541972cb9c72b067f1badcdf9d (patch) | |
tree | 2c5bba04e417444b26c082d82ac89efc2c4fdcb6 /python/servo/build_commands.py | |
parent | 19a5a30113c3b58d69b6010c79db35b9bd8978c9 (diff) | |
download | servo-e16c7ec861e75a541972cb9c72b067f1badcdf9d.tar.gz servo-e16c7ec861e75a541972cb9c72b067f1badcdf9d.zip |
Ensure that SERVO_ENABLE_DEBUG_ASSERTIONS is also used in build-cef
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 2e2051b44d5..47dad148ddb 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -324,9 +324,18 @@ class MachCommands(CommandBase): opts += ["--features", "%s" % ' '.join("servo/" + x for x in servo_features)] build_start = time() + env = self.build_env(is_build=True) + + # TODO: If this ends up making it, we should probably add a + # --release-with-debug-assertions option or similar, so it's easier to + # build locally. + if env.get("SERVO_ENABLE_DEBUG_ASSERTIONS", None): + env["RUSTFLAGS"] = "-C debug_assertions" + with cd(path.join("ports", "cef")): ret = call(["cargo", "build"] + opts, - env=self.build_env(is_build=True), verbose=verbose) + env=env, + verbose=verbose) elapsed = time() - build_start # Generate Desktop Notification if elapsed-time > some threshold value |