Keep sorted lists in TaskGen.prec[]

This commit is contained in:
Thomas Nagy 2016-11-20 10:22:40 +01:00
parent 9c87928f33
commit 2c8777ebc8
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
2 changed files with 2 additions and 3 deletions

1
TODO
View File

@ -7,7 +7,6 @@ Waf 2.0
-------
Merge mem_reducer.py in the mainline
Keep sorted lists in TaskGen.prec[]
Improve the sorting in TaskGen.post()
Default to force files into the build directory
Remove ut_exec, ut_cmd from waf_unit_test.py

View File

@ -432,7 +432,7 @@ def before_method(*k):
for fun_name in k:
if not func.__name__ in task_gen.prec[fun_name]:
task_gen.prec[fun_name].append(func.__name__)
#task_gen.prec[fun_name].sort()
task_gen.prec[fun_name].sort()
return func
return deco
before = before_method
@ -461,7 +461,7 @@ def after_method(*k):
for fun_name in k:
if not fun_name in task_gen.prec[func.__name__]:
task_gen.prec[func.__name__].append(fun_name)
#task_gen.prec[func.__name__].sort()
task_gen.prec[func.__name__].sort()
return func
return deco
after = after_method