diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-09-17 12:04:09 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-10-02 17:57:06 +0200 |
commit | 6496efd0e70940e6d3ed1503308631de95a6751e (patch) | |
tree | 7de28cc1ad58a6762dc136eca96045452c63da62 /python/servo/build_commands.py | |
parent | ce79e0464487ff640d7c1d0f58f74ef28c36b481 (diff) | |
download | servo-6496efd0e70940e6d3ed1503308631de95a6751e.tar.gz servo-6496efd0e70940e6d3ed1503308631de95a6751e.zip |
build: Honor SERVO_ENABLE_DEBUG_ASSERTIONS.
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 29efd935353..2e2051b44d5 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -216,6 +216,12 @@ class MachCommands(CommandBase): build_start = time() env = self.build_env(target=target, 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" + if android: # Build OpenSSL for android make_cmd = ["make"] |