The linux kernel has a bunch of useful macros to check whenever a given compiler supports specific flags. Import them, adapt them for edk2, then put them into use to make both gcc5 and gcc12 work for BaseTools.
Gerd Hoffmann (3): BaseTools: import compiler check macros from linux kernel BaseTools: adapt comniler checks mmacros for edk2 BaseTools: fix gcc workaround BaseTools/Source/C/DevicePath/GNUmakefile | 3 +- .../Source/C/Makefiles/compiler.makefile | 76 +++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 BaseTools/Source/C/Makefiles/compiler.makefile -- 2.35.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#88405): https://edk2.groups.io/g/devel/message/88405 Mute This Topic: https://groups.io/mt/90237796/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-