windres-wrapper: Don't leave the .preproc.rc behind if producing .res
This commit is contained in:
1 parent
4012843f3e
commit
b34e1cd82b
1 file changed
+3
-5
@@ -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