diff options
author | Nathan Froyd <froydnj@gmail.com> | 2017-04-20 17:04:58 -0400 |
---|---|---|
committer | Nathan Froyd <froydnj@gmail.com> | 2017-04-22 17:00:24 -0400 |
commit | 7c6fda8ea996111424340cac05fff10d551b4e69 (patch) | |
tree | 4cff5a535212a2f7eaacbc12644021fa6b48e74f /python/servo/build_commands.py | |
parent | 93fa0ae1e3bcfe9e70a6fea91d137f20d8b5f790 (diff) | |
download | servo-7c6fda8ea996111424340cac05fff10d551b4e69.tar.gz servo-7c6fda8ea996111424340cac05fff10d551b4e69.zip |
switch gecko_bindings over to the gecko_debug feature
...so that they use the correct Gecko structs regardless of whether Rust
code is being compiled with debug assertions or not.
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index efed18c609e..792b6071145 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -417,8 +417,9 @@ class MachCommands(CommandBase): ret = None opts = [] + features = [] if with_gecko is not None: - opts += ["--features", "bindgen"] + features += ["bindgen"] env["MOZ_DIST"] = path.abspath(path.expanduser(with_gecko)) if jobs is not None: opts += ["-j", jobs] @@ -426,6 +427,11 @@ class MachCommands(CommandBase): opts += ["-v"] if release: opts += ["--release"] + else: + features += ["gecko_debug"] + + if features: + opts += ["--features", ' '.join(features)] if with_gecko is not None: print("Generating atoms data...") |