mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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.
This commit is contained in:
parent
93fa0ae1e3
commit
7c6fda8ea9
7 changed files with 16 additions and 8 deletions
|
@ -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...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue