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:
parent
975fdde91b
commit
cf334db465
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user