waf: do not generate headers when cleaning

This commit is contained in:
bugobliterator 2021-09-30 14:13:53 +05:30 committed by Andrew Tridgell
parent 4aeb85d080
commit eb9b29f84b
1 changed files with 2 additions and 0 deletions

View File

@ -663,6 +663,8 @@ def _build_post_funs(bld):
def _load_pre_build(bld):
'''allow for a pre_build() function in build modules'''
if bld.cmd == 'clean':
return
brd = bld.get_board()
if getattr(brd, 'pre_build', None):
brd.pre_build(bld)