summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2022-08-26 09:31:46 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-08-28 04:11:48 +0000
commitba0e0e4c6a174b71b18ccd6e47319cc45878893c (patch)
tree0adbfa2e0f22d457b29beec59196057bfb191212 /BaseTools
parent39ff9769cad9d3f6b644456efcd0373a4c8452a1 (diff)
downloadedk2-ba0e0e4c6a174b71b18ccd6e47319cc45878893c.tar.gz
edk2-ba0e0e4c6a174b71b18ccd6e47319cc45878893c.tar.bz2
edk2-ba0e0e4c6a174b71b18ccd6e47319cc45878893c.zip
BaseTools: Fix DevicePath GNUmakefile for macOSedk2-stable202208
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>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/DevicePath/GNUmakefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile
index c217674345..17f213879e 100644
--- a/BaseTools/Source/C/DevicePath/GNUmakefile
+++ b/BaseTools/Source/C/DevicePath/GNUmakefile
@@ -16,10 +16,12 @@ include $(MAKEROOT)/Makefiles/app.makefile
GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')
ifneq ("$(GCCVERSION)", "5")
ifneq ($(CXX), llvm)
+ifneq ($(DARWIN),Darwin)
# gcc 12 trips over device path handling
BUILD_CFLAGS += -Wno-error=stringop-overflow
endif
endif
+endif
LIBS = -lCommon
ifeq ($(CYGWIN), CYGWIN)