]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[arm] Use -fno-short-enums for all 32-bit ARM builds
authorMichael Brown <mcb30@ipxe.org>
Mon, 23 Jan 2023 01:26:46 +0000 (01:26 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 Jan 2023 01:26:46 +0000 (01:26 +0000)
commit9de6c45dd3019c7074dc34954e008633409b38df
tree24339e065faab86e8d1bda60d9cff01f181345ee
parent8f59911b201a89b99a2b0c8930b505cc3820b423
[arm] Use -fno-short-enums for all 32-bit ARM builds

The EFI ABI requires the use of -fno-short-enums, and the EDK2 headers
will perform a compile-time check that enums are 32 bits.

The EDK2 headers may be included even in builds for non-EFI platforms,
and so the -fno-short-enums flag must be used in all 32-bit ARM
builds.  Fortunately, nothing else currently cares about enum sizes.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/arm32/Makefile
src/arch/arm32/Makefile.efi