From: Dan Streetman Date: Tue, 13 Aug 2019 00:34:43 +0000 (-0400) Subject: src/boot/efi/meson.build: if meson --werror is true, set gcc -Werror X-Git-Tag: v243-rc2~26^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13317%2Fhead;p=thirdparty%2Fsystemd.git 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. --- 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),