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]);
|
_tperror(exec_argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
if (!verbose)
|
||||||
|
_tunlink(preproc_rc);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
error(basename, _T("llvm-rc failed"));
|
error(basename, _T("llvm-rc failed"));
|
||||||
if (!verbose)
|
|
||||||
_tunlink(preproc_rc);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -432,10 +432,8 @@ int _tmain(int argc, TCHAR* argv[]) {
|
|||||||
_tperror(exec_argv[0]);
|
_tperror(exec_argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (!verbose) {
|
if (!verbose)
|
||||||
_tunlink(preproc_rc);
|
|
||||||
_tunlink(res);
|
_tunlink(res);
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
error(basename, _T("invalid output format: `"TS"'"), output_format);
|
error(basename, _T("invalid output format: `"TS"'"), output_format);
|
||||||
|
|||||||
Reference in new issue
Block a user