diff --git a/waflib/Build.py b/waflib/Build.py index 94ae65ab..308c9704 100644 --- a/waflib/Build.py +++ b/waflib/Build.py @@ -176,7 +176,9 @@ class BuildContext(Context.Context): rule = bar, ) """ - return self(*k, rule=rule, **kw) + def f(rule): + return self(*k, rule=rule, **kw) + return f def __copy__(self): """Implemented to prevents copies of build contexts (raises an exception)"""