Skip to content

Commit

Permalink
fix: include regenerated bindings from OUT_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Jan 1, 2025
1 parent 578eba9 commit 9b309a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deps/phnt-nightly
Submodule phnt-nightly updated 2 files
+2 −0 ntldr.h
+91 −3 ntmmapi.h
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@ pub mod ffi {
include!("ffi/aarch64_bindgen.rs");

// use regenerated bindings
// TODO: Make sure regenerated bindings actually get used
#[cfg_attr(docsrs, doc(cfg(feature = "regenerate")))]
#[cfg(all(feature = "regenerate", target_arch = "x86"))]
include!("ffi/x86_bindgen.rs");
include!(concat!(env!("OUT_DIR"), "/x86_bindgen.rs"));
#[cfg_attr(docsrs, doc(cfg(feature = "regenerate")))]
#[cfg(all(feature = "regenerate", target_arch = "x86_64"))]
include!("ffi/x86_64_bindgen.rs");
include!(concat!(env!("OUT_DIR"), "/x86_64_bindgen.rs"));
#[cfg_attr(docsrs, doc(cfg(feature = "regenerate")))]
#[cfg(all(feature = "regenerate", target_arch = "aarch64"))]
include!("ffi/aarch64_bindgen.rs");
include!(concat!(env!("OUT_DIR"), "/aarch64_bindgen.rs"));
}

/// Extensions to the bindings (useful functions, macros, etc.)
Expand Down

0 comments on commit 9b309a5

Please sign in to comment.