On macOS, /usr/bin/gcc is clang, and so doesn't have
the -Wno-error=stringop-overflow flag that was added
for gcc 12.
Update the GNUmakefile for DevicePath to skip setting
that on macOS.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')\r
ifneq ("$(GCCVERSION)", "5")\r
ifneq ($(CXX), llvm)\r
+ifneq ($(DARWIN),Darwin)\r
# gcc 12 trips over device path handling\r
BUILD_CFLAGS += -Wno-error=stringop-overflow\r
endif\r
endif\r
+endif\r
\r
LIBS = -lCommon\r
ifeq ($(CYGWIN), CYGWIN)\r