Skip to content

Commit

Permalink
Ensure that SERVO_ENABLE_DEBUG_ASSERTIONS is also used in build-cef
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbergstrom committed Oct 5, 2016
1 parent 19a5a30 commit e16c7ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion python/servo/build_commands.py
Expand Up @@ -324,9 +324,18 @@ def build_cef(self, jobs=None, verbose=False, release=False):
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
Expand Down

0 comments on commit e16c7ec

Please sign in to comment.