gccdeps/msvcdeps: renaming a header must rebuild silently #2293

This commit is contained in:
Thomas Nagy 2020-06-20 00:45:00 +02:00
parent 8537c0de4a
commit 8b6786623d
2 changed files with 10 additions and 2 deletions

View File

@ -15,7 +15,7 @@ Usage::
conf.load('compiler_cxx gccdeps')
"""
import os, re, threading
import errno, os, re, threading
from waflib import Task, Logs, Utils, Errors
from waflib.Tools import c_preproc
from waflib.TaskGen import before_method, feature
@ -167,6 +167,10 @@ def sig_implicit_deps(self):
return Task.Task.sig_implicit_deps(self)
except Errors.WafError:
return Utils.SIG_NIL
except EnvironmentError as e:
if e.errno == errno.ENOENT:
return Utils.SIG_NIL
raise
def wrap_compiled_task(classname):
derived_class = type(classname, (Task.classes[classname],), {})

View File

@ -25,7 +25,7 @@ Usage::
conf.load('compiler_cxx msvcdeps')
'''
import os, sys, tempfile, threading
import errno, os, sys, tempfile, threading
from waflib import Context, Errors, Logs, Task, Utils
from waflib.Tools import c_preproc, c, cxx, msvc
@ -155,6 +155,10 @@ def sig_implicit_deps(self):
return Task.Task.sig_implicit_deps(self)
except Errors.WafError:
return Utils.SIG_NIL
except EnvironmentError as e:
if e.errno == errno.ENOENT:
return Utils.SIG_NIL
raise
def exec_command(self, cmd, **kw):
if self.env.CC_NAME not in supported_compilers: