diff options
author | Rebecca Cran <rebecca@bsdio.com> | 2022-08-26 09:31:46 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-08-28 04:11:48 +0000 |
commit | ba0e0e4c6a174b71b18ccd6e47319cc45878893c (patch) | |
tree | 0adbfa2e0f22d457b29beec59196057bfb191212 /BaseTools/Source/C/DevicePath | |
parent | 39ff9769cad9d3f6b644456efcd0373a4c8452a1 (diff) | |
download | edk2-ba0e0e4c6a174b71b18ccd6e47319cc45878893c.zip edk2-ba0e0e4c6a174b71b18ccd6e47319cc45878893c.tar.gz edk2-ba0e0e4c6a174b71b18ccd6e47319cc45878893c.tar.bz2 |
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/Source/C/DevicePath')
-rw-r--r-- | BaseTools/Source/C/DevicePath/GNUmakefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile index c217674..17f2138 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)
|