Don't track depfiles as result files which need to be cleaned up on failure.

This is a partial revert of r143846. While cleaning up after a crash is
probably a good idea, we were also deleting .d files if the compilation failed
due to invalid input, which is not the desired behavior. The test is XFAIL'd
until the cleanup code can be reworked to do the right thing.

llvm-svn: 144590
This commit is contained in:
Matt Beaumont-Gay 2011-11-14 23:24:52 +00:00
parent 750de7a399
commit 8e9aae5999
2 changed files with 1 additions and 3 deletions

View File

@ -225,13 +225,11 @@ void Clang::AddPreprocessingOptions(Compilation &C,
DepFile = Output.getFilename();
} else if (Arg *MF = Args.getLastArg(options::OPT_MF)) {
DepFile = MF->getValue(Args);
C.addResultFile(DepFile);
} else if (A->getOption().matches(options::OPT_M) ||
A->getOption().matches(options::OPT_MM)) {
DepFile = "-";
} else {
DepFile = darwin::CC1::getDependencyFileName(Args, Inputs);
C.addResultFile(DepFile);
}
CmdArgs.push_back("-dependency-file");
CmdArgs.push_back(DepFile);

View File

@ -4,6 +4,6 @@
// REQUIRES: shell
// REQUIRES: crash-recovery
// XFAIL: darwin
// XFAIL: *
#pragma clang __debug crash