Re: [PATCH] buildman: Pass -Werror to the host compiler too

2023-05-04 Thread Tom Rini
On Fri, Apr 28, 2023 at 01:50:48PM -0600, Simon Glass wrote:

> 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 
> Tested-by: Tom Rini 

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Re: [PATCH] buildman: Pass -Werror to the host compiler too

2023-04-28 Thread Tom Rini
On Fri, Apr 28, 2023 at 01:50:48PM -0600, Simon Glass wrote:

> 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 

Since I reported this with a CI build that didn't fail, I can see now it
does work:
https://source.denx.de/u-boot/u-boot/-/jobs/619681

Tested-by: Tom Rini 

-- 
Tom


signature.asc
Description: PGP signature


[PATCH] buildman: Pass -Werror to the host compiler too

2023-04-28 Thread Simon Glass
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 
---

 tools/buildman/builderthread.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py
index 879ff138ad7..635865c21c8 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:
-- 
2.40.1.495.gc816e09b53d-goog