From 4d6c1fce0e2002f6a1c7244b03c9a36e3200c0c6 Mon Sep 17 00:00:00 2001 From: Dan Streetman Date: Mon, 12 Aug 2019 20:34:43 -0400 Subject: [PATCH] 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. --- src/boot/efi/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index dfec97028b4..b8fd5105d04 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), -- 2.47.3