diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index dfec97028b..b8fd5105d0 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -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),