summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-04-28 13:50:48 -0600
committerTom Rini <trini@konsulko.com>2023-05-03 18:30:46 -0400
commit43bdb3b39a0984c8c6ffcbb847bf648e941c0d26 (patch)
treed47d308249b0fafbcfc804da445d48b4cef2a9fb /tools
parenta7989a7cc2ee8dd61805dff62fac80659daf5c66 (diff)
downloadu-boot-43bdb3b39a0984c8c6ffcbb847bf648e941c0d26.tar.gz
buildman: Pass -Werror to the host compiler too
The host compiler is not failing on warnings at present, when the -E flag is used in buildman. Add the required flag to fix this. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/buildman/builderthread.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py
index 879ff138ad..635865c21c 100644
--- a/tools/buildman/builderthread.py
+++ b/tools/buildman/builderthread.py
@@ -253,6 +253,7 @@ class BuilderThread(threading.Thread):
args.extend(['-j', str(self.builder.num_jobs)])
if self.builder.warnings_as_errors:
args.append('KCFLAGS=-Werror')
+ args.append('HOSTCFLAGS=-Werror')
if self.builder.allow_missing:
args.append('BINMAN_ALLOW_MISSING=1')
if self.builder.no_lto: