src/boot/efi/meson.build: if meson --werror is true, set gcc -Werror

This part of the build does not use the normal meson parameters, so
we need to explicitly check for the meson --werror parameter, and if
it's true, set the gcc -Werror parameter for this subdir's build.
This commit is contained in:
Dan Streetman 2019-08-12 20:34:43 -04:00
parent 4287d0832c
commit 4d6c1fce0e

View file

@ -135,6 +135,9 @@ if have_gnu_efi
compile_args += ['-mno-sse',
'-mno-mmx']
endif
if get_option('werror') == true
compile_args += ['-Werror']
endif
efi_ldflags = ['-T',
join_paths(efi_ldsdir, arch_lds),