]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Pass -Werror to the host compiler too
authorSimon Glass <sjg@chromium.org>
Fri, 28 Apr 2023 19:50:48 +0000 (13:50 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 3 May 2023 22:30:46 +0000 (18:30 -0400)
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>
tools/buildman/builderthread.py

index 879ff138ad75c03b88348e9104b0a66c7fb1d7b7..635865c21c8524d7ad6f3b545c9a6a3b723e0be6 100644 (file)
@@ -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: