From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web12.4328.1657259121336479921 for ; Thu, 07 Jul 2022 22:45:22 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=W9TVpBc+; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: yuwei.chen@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657259121; x=1688795121; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xORVV2rINfte1qmaFIeRRewsjWspTiSDMJzlF89ZB9c=; b=W9TVpBc+qM+hjjUbYnCmoUdtJrjBJgFlnOo+/evHLhcCP3qLdr8vjgvu jfVDVBxeCCy4R6ni0PsunOIWqZItH6s6+F8Vfw5aerNtBX4qvip9vC2+P D1SQt6EVbtoN47bUIxtszy5e0CyfEYHyIcrqoH75q6Ck3orlCo3QGlpwr AnLNV0FsPgBfUjuvHBKRiNzUUu+rhuNdzwN7Wd01cIeJCktjisPAtPweb S6vrFwJbVYNQGVXBJAjxi6c+rCRxuP7mXH3afjqQKtNMXnUbzqfsf0gn/ ArzHGRnFCyQnXsjaU8Sgpicm09oAzxI6W8PjjPiXQe6wZFDqObfM50Nv/ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10401"; a="348180735" X-IronPort-AV: E=Sophos;i="5.92,254,1650956400"; d="scan'208";a="348180735" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2022 22:45:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,254,1650956400"; d="scan'208";a="661653562" Received: from yuweipc.ccr.corp.intel.com ([10.239.158.38]) by fmsmga004.fm.intel.com with ESMTP; 07 Jul 2022 22:45:19 -0700 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao Subject: [PATCH 1/1] BaseTools: remove directly calling for gcc command Date: Fri, 8 Jul 2022 13:45:16 +0800 Message-Id: <20220708054516.223-1-yuwei.chen@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In some environment, the directly calling for gcc is not supported. Thus replace gcc to $(CC). Cc: Bob Feng Cc: Liming Gao Signed-off-by: Yuwei Chen --- BaseTools/Source/C/DevicePath/GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile index c217674345b1..f683efc5648a 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 $(CC) -dumpversion | awk -F'.' '{print $$1}') ifneq ("$(GCCVERSION)", "5") ifneq ($(CXX), llvm) # gcc 12 trips over device path handling -- 2.27.0.windows.1