mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-27 13:57:26 +03:00
efi: Only use arm flags if supported
Support gcc 8 on arm
This commit is contained in:
parent
7843706caf
commit
361f41645c
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user