infra/ci: trying to fix stuck in windows ci
layout tests cause too many warnings:
may be this is the problem with windows
@@ -107,7 +107,9 @@ fn gen_binding<P: AsRef<Path>>(
c_file_path: &Path,
output_rust: &Path,
) -> Result<(), String> {
- let mut bindings: bindgen::Builder = bindgen::builder().header(c_file_path.to_str().unwrap());
+ let mut bindings: bindgen::Builder = bindgen::builder()
+ .layout_tests(false)
+ .header(c_file_path.to_str().unwrap());
bindings = include_dirs.iter().fold(bindings, |acc, x| {
acc.clang_arg("-I".to_string() + x.as_ref().to_str().unwrap())
});
