From eb9b29f84b940553a2482abca8c1ae3bf2d33542 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Thu, 30 Sep 2021 14:13:53 +0530 Subject: [PATCH] waf: do not generate headers when cleaning --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index 843ebf65e3..40c789e47a 100644 --- a/wscript +++ b/wscript @@ -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)