waf: notify users that we have moved to using tool instead of tools

This commit is contained in:
Siddharth Purohit 2021-07-06 11:59:49 +05:30 committed by Andrew Tridgell
parent 2750b361aa
commit 5d435c762e

View File

@ -129,6 +129,8 @@ def ap_autoconfigure(execute_method):
"""
Wraps :py:func:`waflib.Context.Context.execute` on the context class
"""
if 'tools/' in self.targets:
raise Errors.WafError('\"tools\" name has been replaced with \"tool\" for build please use that!')
if not Configure.autoconfig:
return execute_method(self)