mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix DevicePath GNUmakefile for macOS
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>
This commit is contained in:
parent
39ff9769ca
commit
ba0e0e4c6a
|
@ -16,10 +16,12 @@ include $(MAKEROOT)/Makefiles/app.makefile
|
||||||
GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')
|
GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')
|
||||||
ifneq ("$(GCCVERSION)", "5")
|
ifneq ("$(GCCVERSION)", "5")
|
||||||
ifneq ($(CXX), llvm)
|
ifneq ($(CXX), llvm)
|
||||||
|
ifneq ($(DARWIN),Darwin)
|
||||||
# gcc 12 trips over device path handling
|
# gcc 12 trips over device path handling
|
||||||
BUILD_CFLAGS += -Wno-error=stringop-overflow
|
BUILD_CFLAGS += -Wno-error=stringop-overflow
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
LIBS = -lCommon
|
LIBS = -lCommon
|
||||||
ifeq ($(CYGWIN), CYGWIN)
|
ifeq ($(CYGWIN), CYGWIN)
|
||||||
|
|
Loading…
Reference in New Issue