@@ -69,23 +69,10 @@ use std::thread::{self, JoinHandle};
69
69
mod os_pipe;
70
70
#[ cfg( feature = "parallel" ) ]
71
71
mod parallel;
72
- // These modules are all glue to support reading the MSVC version from
73
- // the registry and from COM interfaces
74
- #[ cfg( windows) ]
75
- mod registry;
76
- #[ cfg( windows) ]
77
- #[ macro_use]
78
- mod winapi;
79
- #[ cfg( windows) ]
80
- mod com;
81
- #[ cfg( windows) ]
82
- mod setup_config;
83
- #[ cfg( windows) ]
84
- mod vs_instances;
85
- #[ cfg( windows) ]
86
- mod windows_sys;
87
-
88
- pub mod windows_registry;
72
+ mod windows;
73
+ // Regardless of whether this should be in this crate's public API,
74
+ // it has been since 2015, so don't break it.
75
+ pub use windows:: find_tools as windows_registry;
89
76
90
77
/// A builder for compilation of a native library.
91
78
///
@@ -2195,7 +2182,7 @@ impl Build {
2195
2182
} else {
2196
2183
"ml.exe"
2197
2184
} ;
2198
- let mut cmd = windows_registry :: find ( & target, tool) . unwrap_or_else ( || self . cmd ( tool) ) ;
2185
+ let mut cmd = windows :: find_tools :: find ( & target, tool) . unwrap_or_else ( || self . cmd ( tool) ) ;
2199
2186
cmd. arg ( "-nologo" ) ; // undocumented, yet working with armasm[64]
2200
2187
for directory in self . include_directories . iter ( ) {
2201
2188
cmd. arg ( "-I" ) . arg ( & * * directory) ;
@@ -2551,7 +2538,7 @@ impl Build {
2551
2538
traditional
2552
2539
} ;
2553
2540
2554
- let cl_exe = windows_registry :: find_tool ( target, "cl.exe" ) ;
2541
+ let cl_exe = windows :: find_tools :: find_tool ( target, "cl.exe" ) ;
2555
2542
2556
2543
let tool_opt: Option < Tool > = self
2557
2544
. env_tool ( env)
@@ -3022,7 +3009,7 @@ impl Build {
3022
3009
3023
3010
if lib. is_empty ( ) {
3024
3011
name = String :: from ( "lib.exe" ) ;
3025
- let mut cmd = match windows_registry :: find ( & target, "lib.exe" ) {
3012
+ let mut cmd = match windows :: find_tools :: find ( & target, "lib.exe" ) {
3026
3013
Some ( t) => t,
3027
3014
None => self . cmd ( "lib.exe" ) ,
3028
3015
} ;
0 commit comments