]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/DevicePath/GNUmakefile
BaseTools: Fix DevicePath GNUmakefile for macOS
[mirror_edk2.git] / 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