Issue 1506

This commit is contained in:
Thomas Nagy 2014-10-28 22:15:52 +01:00
parent 803bbe6674
commit 046c55a97e
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 4 additions and 2 deletions

View File

@ -729,12 +729,14 @@ class Task(TaskBase):
try:
if prev == self.compute_sig_implicit_deps():
return prev
except Exception:
except Errors.TaskNotReady:
raise
except IOError:
# when a file was renamed (IOError usually), remove the stale nodes (headers in folders without source files)
# this will break the order calculation for headers created during the build in the source directory (should be uncommon)
# the behaviour will differ when top != out
for x in bld.node_deps.get(self.uid(), []):
if x.is_child_of(bld.srcnode):
if not x.is_bld():
try:
os.stat(x.abspath())
except OSError: