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>
This commit is contained in:
parent
a7989a7cc2
commit
43bdb3b39a
1 changed files with 1 additions and 0 deletions
|
@ -253,6 +253,7 @@ class BuilderThread(threading.Thread):
|
||||||
args.extend(['-j', str(self.builder.num_jobs)])
|
args.extend(['-j', str(self.builder.num_jobs)])
|
||||||
if self.builder.warnings_as_errors:
|
if self.builder.warnings_as_errors:
|
||||||
args.append('KCFLAGS=-Werror')
|
args.append('KCFLAGS=-Werror')
|
||||||
|
args.append('HOSTCFLAGS=-Werror')
|
||||||
if self.builder.allow_missing:
|
if self.builder.allow_missing:
|
||||||
args.append('BINMAN_ALLOW_MISSING=1')
|
args.append('BINMAN_ALLOW_MISSING=1')
|
||||||
if self.builder.no_lto:
|
if self.builder.no_lto:
|
||||||
|
|
Loading…
Reference in a new issue