mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-10 02:15:13 +01:00
Do not define the empty prec object on task_gen instances by default
This commit is contained in:
parent
508b20679d
commit
ba1932ebc2
@ -39,9 +39,9 @@ NEW IN WAF 1.9 preview 1
|
||||
- Better consistency between check_cfg and check_cc variables
|
||||
- Subclass waflib.Build.ConfiguredContext to enable configuration-dependent user commands
|
||||
- Remove Task.dep_vars as it is never used (define Task.vars on instances if necessary)
|
||||
- task_gen.mapping is not defined by default on instances anymore, but instances can
|
||||
still define their own mappings to override the defaults, but in that case all mappings
|
||||
must be present. This feature was not used in Waf 1.8.
|
||||
- task_gen.mapping and task_gen.prec are not defined by default on instances anymore, but
|
||||
instances can still define their own mappings to override the defaults, but in
|
||||
that case all mappings/precedences must be present. These features were not used in Waf 1.8.
|
||||
- Unused attribute 'mac_resources' is no longer supported, use mac_files (see demos/mac_app)
|
||||
- The _task suffix is no longer truncated from Task class names
|
||||
|
||||
|
@ -61,11 +61,6 @@ class task_gen(object):
|
||||
List of method names to execute (it is usually a good idea to avoid touching this)
|
||||
"""
|
||||
|
||||
self.prec = Utils.defaultdict(list)
|
||||
"""
|
||||
Precedence table for sorting the methods in self.meths
|
||||
"""
|
||||
|
||||
self.features = []
|
||||
"""
|
||||
List of feature names for bringing new methods in
|
||||
@ -160,7 +155,7 @@ class task_gen(object):
|
||||
#. The tasks created are added to :py:attr:`waflib.TaskGen.task_gen.tasks`
|
||||
"""
|
||||
if getattr(self, 'posted', None):
|
||||
#error("OBJECT ALREADY POSTED" + str( self))
|
||||
#error("Task Generator already posted" + str(self))
|
||||
return False
|
||||
self.posted = True
|
||||
|
||||
@ -177,7 +172,7 @@ class task_gen(object):
|
||||
|
||||
# copy the precedence table
|
||||
prec = {}
|
||||
prec_tbl = self.prec or task_gen.prec
|
||||
prec_tbl = self.prec
|
||||
for x in prec_tbl:
|
||||
if x in keys:
|
||||
prec[x] = prec_tbl[x]
|
||||
|
Loading…
Reference in New Issue
Block a user