Skip to content

Commit f4b2478

Browse files
:v
1 parent 0901006 commit f4b2478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/windows_msvc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl ResourceCompiler {
3131
-> Result<String, Cow<'static, str>> {
3232
let out_file = format!("{}{}{}.lib", out_dir, MAIN_SEPARATOR, prefix);
3333
let (_, rc) = env_target_and_rc()?;
34-
let rc = rc.map(PathBuf::from).ok_or_else(|| find_windows_sdk_tool_impl("rc.exe"));
34+
let rc = rc.map(PathBuf::from).or_else(|| find_windows_sdk_tool_impl("rc.exe"));
3535
// `.res`es are linkable under MSVC as well as normal libraries.
3636
if !apply_parameters(Command::new(rc.as_deref().unwrap_or(Path::new("rc.exe"))).args(&["/fo", &out_file, "/I", out_dir]),
3737
"/D",

0 commit comments

Comments
 (0)