Skip to content

Commit

Permalink
fix formatting and missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmc88 committed Mar 5, 2024
1 parent 9db37d7 commit 5ea0566
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion crates/wdk-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,18 @@ impl Config {
///
/// This consists mainly of linker setting configuration. This must be
/// called from a Cargo build script of the binary being built
///
/// # Errors
///
/// This function will return an error if any of the required paths do not
/// exist.
///
/// # Panics
///
/// Panics if the invoked from outside a Cargo build environmen
pub fn configure_binary_build(&self) -> Result<(), ConfigError> {
self.configure_library_build()?;

// Linker arguments derived from Microsoft.Link.Common.props in Ni(22H2) WDK
println!("cargo:rustc-cdylib-link-arg=/NXCOMPAT");
println!("cargo:rustc-cdylib-link-arg=/DYNAMICBASE");
Expand Down

0 comments on commit 5ea0566

Please sign in to comment.