When checking the version in DevicePath's Makefile, use BUILD_CC instead
of assuming "gcc". BUILD_CC is set in header.makefile and is the
compiler that will actually be used to build DevicePath. It defaults to
"gcc", but may be overridden.
Signed-off-by: Jake Garver <jake@nvidia.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
\r
include $(MAKEROOT)/Makefiles/app.makefile\r
\r
-GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')\r
+GCCVERSION = $(shell $(BUILD_CC) -dumpversion | awk -F'.' '{print $$1}')\r
ifneq ("$(GCCVERSION)", "5")\r
ifneq ($(CXX), llvm)\r
ifneq ($(DARWIN),Darwin)\r