This repository was archived by the owner on Feb 23, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
9392trait CcOutputExecutable
9493{
9594 fn output_executable ( & self ) -> Command ;
9695}
96+
9797impl 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" ) ;
You can’t perform that action at this time.
0 commit comments