]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi: Only use arm flags if supported
authorAndrew Balmos <abalmos@gmail.com>
Fri, 11 Dec 2020 03:15:24 +0000 (22:15 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 Dec 2020 03:06:52 +0000 (12:06 +0900)
Support gcc 8 on arm

src/boot/efi/meson.build

index c853f8e95100bfd4e5d958d2c16c5377bf842589..24177f938408d28b0ffb5e7fe6ea2da6a0c7da22 100644 (file)
@@ -156,7 +156,13 @@ if have_gnu_efi
                 compile_args += ['-mno-sse',
                                  '-mno-mmx']
         elif efi_arch == 'arm'
-                compile_args += ['-mgeneral-regs-only']
+                if cc.has_argument('-mgeneral-regs-only')
+                        compile_args += ['-mgeneral-regs-only']
+                endif
+
+                if cc.has_argument('-mfpu=none')
+                        compile_args += ['-mfpu=none']
+                endif
         endif
         if get_option('werror') == true
                 compile_args += ['-Werror']