mirror of
https://github.com/servo/servo.git
synced 2025-08-25 15:18:22 +01:00
Only generate structs file for the current build
This commit is contained in:
parent
44e0ce3ffe
commit
23d9d12430
6 changed files with 12 additions and 37881 deletions
|
@ -15,13 +15,7 @@ pub mod bindings {
|
|||
|
||||
#[allow(dead_code, improper_ctypes, non_camel_case_types, non_snake_case, non_upper_case_globals, missing_docs)]
|
||||
pub mod structs {
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "gecko_debug")] {
|
||||
include!(concat!(env!("OUT_DIR"), "/gecko/structs_debug.rs"));
|
||||
} else {
|
||||
include!(concat!(env!("OUT_DIR"), "/gecko/structs_release.rs"));
|
||||
}
|
||||
}
|
||||
include!(concat!(env!("OUT_DIR"), "/gecko/structs.rs"));
|
||||
}
|
||||
|
||||
pub mod sugar;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue