summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Balmos <abalmos@gmail.com>2020-12-10 22:15:24 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-16 14:31:40 +0100
commitf2ec15e2e5c70913ead7c19bab5d4d6b596e198c (patch)
treed4fb96cf064a854529ac26ea8674dd00407f7dd7
parentcd43eee770c306169467f17d2f40aeddc432e729 (diff)
downloadsystemd-f2ec15e2e5c70913ead7c19bab5d4d6b596e198c.tar.gz
efi: Only use arm flags if supported
Support gcc 8 on arm (cherry picked from commit 361f41645cdf920d431e2d68dcfa3f98088c2e03)
-rw-r--r--src/boot/efi/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
index c853f8e951..24177f9384 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']