2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +01:00

Use options.enable_gccdeps if provided by user scripts

This commit is contained in:
Thomas Nagy 2015-10-31 11:24:53 +01:00
parent 975fdde91b
commit cf334db465
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -75,9 +75,6 @@ def post_run(self):
if not self.__class__.__name__ in self.env.ENABLE_GCCDEPS:
return self.no_gccdeps_post_run()
if getattr(self, 'cached', None):
return Task.Task.post_run(self)
name = self.outputs[0].abspath()
name = re_o.sub('.d', name)
txt = Utils.readf(name)
@ -189,6 +186,10 @@ def configure(conf):
# record that the configuration was executed properly
conf.env.GCCDEPS = True
# in case someone provides a --enable-gccdeps command-line option
if not getattr(conf.options, 'enable_gccdeps', True):
return
global gccdeps_flags
flags = conf.env.GCCDEPS_FLAGS or gccdeps_flags
if conf.env.CC_NAME in supported_compilers: