There was an error while loading. Please reload this page.
1 parent 0901006 commit f4b2478Copy full SHA for f4b2478
1 file changed
src/windows_msvc.rs
@@ -31,7 +31,7 @@ impl ResourceCompiler {
31
-> Result<String, Cow<'static, str>> {
32
let out_file = format!("{}{}{}.lib", out_dir, MAIN_SEPARATOR, prefix);
33
let (_, rc) = env_target_and_rc()?;
34
- let rc = rc.map(PathBuf::from).ok_or_else(|| find_windows_sdk_tool_impl("rc.exe"));
+ let rc = rc.map(PathBuf::from).or_else(|| find_windows_sdk_tool_impl("rc.exe"));
35
// `.res`es are linkable under MSVC as well as normal libraries.
36
if !apply_parameters(Command::new(rc.as_deref().unwrap_or(Path::new("rc.exe"))).args(&["/fo", &out_file, "/I", out_dir]),
37
"/D",
0 commit comments