You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the linked .rc file is not valid, RC.exe will choke on it but cargo will continue the build. The result is an error like this one:
LINK : fatal error LNK1181: cannot open input file 'versioninfo.lib'
In my case, the true error is this:
Panicking if the exitcode not 0 perhaps? Here's what the code could look like:
let result = Command::new(find_windows_sdk_rc_exe().as_ref().map_or(Path::new("rc.exe"),Path::new)).args(&["/fo",&format!("{}/{}.lib", out_dir, prefix), resource]).status().expect("Are you sure you have RC.EXE in your $PATH?");if !result.success(){panic!("RC.exe did not exit successfully")}
The text was updated successfully, but these errors were encountered:
If the linked .rc file is not valid, RC.exe will choke on it but cargo will continue the build. The result is an error like this one:
LINK : fatal error LNK1181: cannot open input file 'versioninfo.lib'
In my case, the true error is this:
Panicking if the exitcode not 0 perhaps? Here's what the code could look like:
The text was updated successfully, but these errors were encountered: