]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/DevicePath/GNUmakefile
BaseTools: Use BUILD_CC when checking gcc version in DevicePath
[mirror_edk2.git] / BaseTools / Source / C / DevicePath / GNUmakefile
index 17f213879e820a4d347b52b0df98b642031ed350..13b54ead65ac2d8a3ea8a28caed2109fe048ae21 100644 (file)
@@ -13,7 +13,7 @@ OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o  DevicePathUtili
 \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