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