]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
src/boot/efi/meson.build: if meson --werror is true, set gcc -Werror 13317/head
authorDan Streetman <ddstreet@canonical.com>
Tue, 13 Aug 2019 00:34:43 +0000 (20:34 -0400)
committerDan Streetman <ddstreet@canonical.com>
Thu, 15 Aug 2019 21:46:58 +0000 (17:46 -0400)
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

index dfec97028b452487277ba5dbc49488cc2ab71168..b8fd5105d0437571b3391f718f8efbae6023bf4d 100644 (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),