mirror of
https://github.com/mstorsjo/llvm-mingw
synced 2026-06-21 14:01:00 +00:00
windres-wrapper: Don't leave the .preproc.rc behind if producing .res
This commit is contained in:
@@ -407,10 +407,10 @@ int _tmain(int argc, TCHAR* argv[]) {
|
||||
_tperror(exec_argv[0]);
|
||||
return 1;
|
||||
}
|
||||
if (!verbose)
|
||||
_tunlink(preproc_rc);
|
||||
if (ret != 0) {
|
||||
error(basename, _T("llvm-rc failed"));
|
||||
if (!verbose)
|
||||
_tunlink(preproc_rc);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -432,10 +432,8 @@ int _tmain(int argc, TCHAR* argv[]) {
|
||||
_tperror(exec_argv[0]);
|
||||
return 1;
|
||||
}
|
||||
if (!verbose) {
|
||||
_tunlink(preproc_rc);
|
||||
if (!verbose)
|
||||
_tunlink(res);
|
||||
}
|
||||
return ret;
|
||||
} else {
|
||||
error(basename, _T("invalid output format: `"TS"'"), output_format);
|
||||
|
||||
Reference in New Issue
Block a user