mirror of https://gitlab.com/ita1024/waf.git
gccdeps/msvcdeps: renaming a header must rebuild silently #2293
This commit is contained in:
parent
cd589cd86b
commit
05198a8302
|
@ -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],), {})
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue