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