Skip to contentSkip to conversation

buildman: Pass -Werror to the host compiler too

PATCH In review Simon Glass 2 participants 3 messages Apr 28, 2023 – May 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 tools/buildman/builderthread.py | 1 +
 1 file changed, 1 insertion(+)
tools/buildman/builderthread.py +1 -0
index 879ff138ad7..635865c21c8 100644
@@ -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:
Signature · 1 line
2.40.1.495.gc816e09b53d-goog