mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
style: Update style build script for bindgen changes.
This commit is contained in:
parent
46b360cb75
commit
1254cbf313
1 changed files with 2 additions and 9 deletions
|
@ -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![];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue