xref: /DragonOS/build-scripts/kernel_build/src/bindgen/arch/x86_64.rs (revision e4fb6c9754e535861a5e67db29fb6e8c2e9c8469)
1*e26ca418SLoGin use super::BindgenArch;
2*e26ca418SLoGin 
3*e26ca418SLoGin pub struct X86_64BindgenArch;
4*e26ca418SLoGin 
5*e26ca418SLoGin impl BindgenArch for X86_64BindgenArch {
generate_bindings(&self, builder: bindgen::Builder) -> bindgen::Builder6*e26ca418SLoGin     fn generate_bindings(&self, builder: bindgen::Builder) -> bindgen::Builder {
7*e26ca418SLoGin         builder
8*e26ca418SLoGin             .clang_arg("-I./src/arch/x86_64/include")
9*e26ca418SLoGin             .clang_arg("--target=x86_64-none-none")
10*e26ca418SLoGin     }
11*e26ca418SLoGin }
12