forked from OSchip/llvm-project
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:
parent
750de7a399
commit
8e9aae5999
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@
|
|||
// REQUIRES: shell
|
||||
// REQUIRES: crash-recovery
|
||||
|
||||
// XFAIL: darwin
|
||||
// XFAIL: *
|
||||
|
||||
#pragma clang __debug crash
|
||||
|
|
|
|||
Loading…
Reference in New Issue