mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-24 04:32:09 +00:00
fix PR3488: llvm-ar r doesn't replace existing files
Patch by Daniel Shelton! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a2e7e5c20
commit
7d8f9b6133
@ -638,7 +638,7 @@ doReplaceOrInsert(std::string* ErrMsg) {
|
||||
const sys::FileStatus *si = PwS.getFileStatus(false, &Err);
|
||||
if (!si)
|
||||
return true;
|
||||
if (si->isDir) {
|
||||
if (!si->isDir) {
|
||||
if (OnlyUpdate) {
|
||||
// Replace the item only if it is newer.
|
||||
if (si->modTime > I->getModTime())
|
||||
|
Loading…
x
Reference in New Issue
Block a user