]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix DevicePath GNUmakefile for macOS edk2-stable202208
authorRebecca Cran <rebecca@bsdio.com>
Fri, 26 Aug 2022 01:31:46 +0000 (09:31 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 28 Aug 2022 04:11:48 +0000 (04:11 +0000)
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>
BaseTools/Source/C/DevicePath/GNUmakefile

index c217674345b1b7884c9dab233afeb828abf8c7e2..17f213879e820a4d347b52b0df98b642031ed350 100644 (file)
@@ -16,10 +16,12 @@ include $(MAKEROOT)/Makefiles/app.makefile
 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