aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-09-03 14:09:21 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-09-03 14:11:02 +0200
commit1254cbf313243e8879a464538a5c78383ba3bc8b (patch)
tree3e92a0a5fed4315519a34e8cef33c54840ada0d4 /components
parent46b360cb753819d086c39bf3638894e4aea8821f (diff)
downloadservo-1254cbf313243e8879a464538a5c78383ba3bc8b.tar.gz
servo-1254cbf313243e8879a464538a5c78383ba3bc8b.zip
style: Update style build script for bindgen changes.
Diffstat (limited to 'components')
-rw-r--r--components/style/build_gecko.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs
index 8387f6513a6..c0655628538 100644
--- a/components/style/build_gecko.rs
+++ b/components/style/build_gecko.rs
@@ -406,11 +406,7 @@ mod bindings {
fn generate_structs() {
let builder = Builder::get_initial_builder()
.enable_cxx_namespaces()
- .with_codegen_config(CodegenConfig {
- types: true,
- vars: true,
- ..CodegenConfig::nothing()
- });
+ .with_codegen_config(CodegenConfig::TYPES | CodegenConfig::VARS);
let mut fixups = vec![];
let builder = BuilderWithConfig::new(builder, CONFIG["structs"].as_table().unwrap())
.handle_common(&mut fixups)
@@ -500,10 +496,7 @@ mod bindings {
fn generate_bindings() {
let builder = Builder::get_initial_builder()
.disable_name_namespacing()
- .with_codegen_config(CodegenConfig {
- functions: true,
- ..CodegenConfig::nothing()
- });
+ .with_codegen_config(CodegenConfig::FUNCTIONS);
let config = CONFIG["bindings"].as_table().unwrap();
let mut structs_types = HashSet::new();
let mut fixups = vec![];