@@ -549,6 +549,10 @@ impl Builder {
549
549
output_vector. push ( "--respect-cxx-access-specs" . into ( ) ) ;
550
550
}
551
551
552
+ if self . options . derive_ignore_blocklist {
553
+ output_vector. push ( "--derive-ignore-blocklist" . into ( ) ) ;
554
+ }
555
+
552
556
// Add clang arguments
553
557
554
558
output_vector. push ( "--" . into ( ) ) ;
@@ -1568,6 +1572,12 @@ impl Builder {
1568
1572
self . options . respect_cxx_access_specs = doit;
1569
1573
self
1570
1574
}
1575
+
1576
+ /// Ignore the type blocklist when computing type derive information
1577
+ pub fn derive_ignore_blocklist ( mut self , doit : bool ) -> Self {
1578
+ self . options . derive_ignore_blocklist = doit;
1579
+ self
1580
+ }
1571
1581
}
1572
1582
1573
1583
/// Configuration options for generated bindings.
@@ -1859,6 +1869,9 @@ struct BindgenOptions {
1859
1869
/// Only make generated bindings `pub` if the items would be publically accessible
1860
1870
/// by C++.
1861
1871
respect_cxx_access_specs : bool ,
1872
+
1873
+ /// Ignore the type blocklist when computing type derive information
1874
+ derive_ignore_blocklist : bool ,
1862
1875
}
1863
1876
1864
1877
/// TODO(emilio): This is sort of a lie (see the error message that results from
@@ -1996,6 +2009,7 @@ impl Default for BindgenOptions {
1996
2009
wasm_import_module_name : None ,
1997
2010
dynamic_library_name : None ,
1998
2011
respect_cxx_access_specs : false ,
2012
+ derive_ignore_blocklist : false ,
1999
2013
}
2000
2014
}
2001
2015
}
0 commit comments