ccc: Don't remove result files on error when -save-temps is present.
llvm-svn: 65349
This commit is contained in:
parent
29b8697393
commit
cdff38b1f6
|
@ -228,10 +228,11 @@ class Driver(object):
|
|||
try:
|
||||
self.executeJobs(args, jobs)
|
||||
except:
|
||||
for f in self.resultFiles:
|
||||
# Fail if removing a result fails:
|
||||
if os.path.exists(f):
|
||||
os.remove(f)
|
||||
if not args.getLastArg(self.parser.saveTempsOption):
|
||||
for f in self.resultFiles:
|
||||
# Fail if removing a result fails:
|
||||
if os.path.exists(f):
|
||||
os.remove(f)
|
||||
raise
|
||||
finally:
|
||||
for f in self.tempFiles:
|
||||
|
|
Loading…
Reference in New Issue