mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-21 17:35:55 +01:00
Let run_once process a list of arguments
This commit is contained in:
parent
04449361e8
commit
6ecd0d22c3
2
TODO
2
TODO
@ -12,7 +12,6 @@ Waf 1.9
|
||||
* Fix the vala detection
|
||||
* Better consistency between check_cfg and check_cc variables
|
||||
* Use relative paths in apply_incpaths (and absolute ones when paths cross drives)
|
||||
* Let run_once accept a list of *args
|
||||
* Let more context commands depend on the configuration
|
||||
|
||||
and all other issues listed on https://github.com/waf-project/waf/issues
|
||||
@ -24,4 +23,5 @@ Done
|
||||
* Include the tool 'nobuild' by default
|
||||
* Remove qt4 and kde4 from the default modules
|
||||
* Detect Clang first on many platforms, in particular on FreeBSD
|
||||
* Let run_once accept a list of *args
|
||||
|
||||
|
@ -741,11 +741,11 @@ def run_once(fun):
|
||||
:return: the return value of the function executed
|
||||
"""
|
||||
cache = {}
|
||||
def wrap(k):
|
||||
def wrap(*k):
|
||||
try:
|
||||
return cache[k]
|
||||
except KeyError:
|
||||
ret = fun(k)
|
||||
ret = fun(*k)
|
||||
cache[k] = ret
|
||||
return ret
|
||||
wrap.__cache__ = cache
|
||||
|
Loading…
Reference in New Issue
Block a user