BUG: Do not clean the .pdb file for a target just before it is linked! This finishes addressing bug#4341.
This commit is contained in:
parent
4d44392652
commit
ed7de15676
|
@ -293,9 +293,14 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
|
||||||
cmLocalGenerator::START_OUTPUT,
|
cmLocalGenerator::START_OUTPUT,
|
||||||
cmLocalGenerator::UNCHANGED));
|
cmLocalGenerator::UNCHANGED));
|
||||||
}
|
}
|
||||||
exeCleanFiles.push_back(this->Convert(cleanFullPDBName.c_str(),
|
|
||||||
cmLocalGenerator::START_OUTPUT,
|
// List the PDB for cleaning only when the whole target is
|
||||||
cmLocalGenerator::UNCHANGED));
|
// cleaned. We do not want to delete the .pdb file just before
|
||||||
|
// linking the target.
|
||||||
|
this->CleanFiles.push_back
|
||||||
|
(this->Convert(cleanFullPDBName.c_str(),
|
||||||
|
cmLocalGenerator::START_OUTPUT,
|
||||||
|
cmLocalGenerator::UNCHANGED));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add a command to remove any existing files for this executable.
|
// Add a command to remove any existing files for this executable.
|
||||||
|
|
|
@ -401,7 +401,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
|
||||||
cmLocalGenerator::START_OUTPUT,
|
cmLocalGenerator::START_OUTPUT,
|
||||||
cmLocalGenerator::UNCHANGED));
|
cmLocalGenerator::UNCHANGED));
|
||||||
}
|
}
|
||||||
libCleanFiles.push_back
|
|
||||||
|
// List the PDB for cleaning only when the whole target is
|
||||||
|
// cleaned. We do not want to delete the .pdb file just before
|
||||||
|
// linking the target.
|
||||||
|
this->CleanFiles.push_back
|
||||||
(this->Convert(cleanFullPDBName.c_str(),
|
(this->Convert(cleanFullPDBName.c_str(),
|
||||||
cmLocalGenerator::START_OUTPUT,
|
cmLocalGenerator::START_OUTPUT,
|
||||||
cmLocalGenerator::UNCHANGED));
|
cmLocalGenerator::UNCHANGED));
|
||||||
|
|
Loading…
Reference in New Issue