From: Andrew Balmos Date: Fri, 11 Dec 2020 03:15:24 +0000 (-0500) Subject: efi: Only use arm flags if supported X-Git-Tag: v248-rc1~510 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=361f41645cdf920d431e2d68dcfa3f98088c2e03;p=thirdparty%2Fsystemd.git efi: Only use arm flags if supported Support gcc 8 on arm --- diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index c853f8e9510..24177f93840 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -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']