Skip to content

Commit

Permalink
waf: do not generate headers when cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator authored and tridge committed Oct 1, 2021
1 parent 4aeb85d commit eb9b29f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eb9b29f

Please sign in to comment.