diff options
author | Jake Garver <jake@nvidia.com> | 2022-12-20 21:14:12 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-12-30 04:30:30 +0000 |
commit | 3a872dac7b79e83b1897d90237ff3fa25c7d69c8 (patch) | |
tree | 6737ac22984fd6e63af96a815397bd264f79b458 | |
parent | c5d68ef6e7553ab2894f541eba4e982428ecbd53 (diff) | |
download | edk2-3a872dac7b79e83b1897d90237ff3fa25c7d69c8.tar.gz edk2-3a872dac7b79e83b1897d90237ff3fa25c7d69c8.tar.bz2 edk2-3a872dac7b79e83b1897d90237ff3fa25c7d69c8.zip |
BaseTools: Use BUILD_CC when checking gcc version in DevicePath
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>
-rw-r--r-- | BaseTools/Source/C/DevicePath/GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile index 17f213879e..13b54ead65 100644 --- a/BaseTools/Source/C/DevicePath/GNUmakefile +++ b/BaseTools/Source/C/DevicePath/GNUmakefile @@ -13,7 +13,7 @@ OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtili include $(MAKEROOT)/Makefiles/app.makefile
-GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')
+GCCVERSION = $(shell $(BUILD_CC) -dumpversion | awk -F'.' '{print $$1}')
ifneq ("$(GCCVERSION)", "5")
ifneq ($(CXX), llvm)
ifneq ($(DARWIN),Darwin)
|