Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 0b49482

Browse files
committed
libwdi-sys: Display the build line for libwdi for debugging
1 parent 963749d commit 0b49482

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

libwdi-sys/build.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ fn get_cc_var(var_base: &str) -> Option<String>
8787
}
8888
}
8989

90-
9190
/// Turns a [cc::Build] into a [Command] that can be used to create an executable,
9291
/// since cc-rs doesn't directly support compiling executables.
9392
trait CcOutputExecutable
9493
{
9594
fn output_executable(&self) -> Command;
9695
}
96+
9797
impl CcOutputExecutable for cc::Build
9898
{
9999
fn output_executable(&self) -> Command
@@ -745,9 +745,11 @@ impl LibwdiBuild
745745
// Everything else is handled by make_embedder
746746
}
747747

748-
lib
749-
.files(&lib_srcs)
750-
.compile("wdi");
748+
// Tell the builder about all the input files that are needed
749+
lib.files(&lib_srcs);
750+
// Display a diagnostic on what we're about to do and run the build
751+
info!("{:?}", lib.output_executable().args(&lib_srcs));
752+
lib.compile("wdi");
751753

752754
println!("cargo:include={}", self.libwdi_src.join("libwdi").to_str().unwrap());
753755
println!("cargo:rustc-link-lib=shell32");

0 commit comments

Comments
 (0)