From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5F35381D65 for ; Thu, 3 Nov 2016 20:27:58 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 03 Nov 2016 20:27:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,442,1473145200"; d="scan'208";a="187459926" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 03 Nov 2016 20:27:46 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 3 Nov 2016 20:27:40 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 3 Nov 2016 20:27:39 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.206]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.209]) with mapi id 14.03.0248.002; Fri, 4 Nov 2016 11:25:37 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [Patch] BaseTools: Fix the Windows GCC Build Failure with too long path Thread-Index: AQHSNb2XbQyol1H10ky1RTyG/VoHj6DIKrHQ Date: Fri, 4 Nov 2016 03:25:35 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14B49EA39@shsmsx102.ccr.corp.intel.com> References: <1478169133-20012-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1478169133-20012-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools: Fix the Windows GCC Build Failure with too long path X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 03:27:58 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Yonghong Zhu > Sent: Thursday, November 03, 2016 6:32 PM > To: edk2-devel@lists.01.org > Cc: Gao, Liming > Subject: [edk2] [Patch] BaseTools: Fix the Windows GCC Build Failure with > too long path >=20 > When path is too long, build tool will wrap them into resp.txt, then call > gcc @resp.txt. It will cause windows GCC build failure, because resp.txt > still uses windows directory separator \. This patch change the \ to /. >=20 > Cc: Liming Gao > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Yonghong Zhu > --- > BaseTools/Source/Python/AutoGen/GenMake.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py > b/BaseTools/Source/Python/AutoGen/GenMake.py > index c8c5fc5..51c5238 100644 > --- a/BaseTools/Source/Python/AutoGen/GenMake.py > +++ b/BaseTools/Source/Python/AutoGen/GenMake.py > @@ -766,11 +766,15 @@ cleanlib: > if (Value.find(MacroName) !=3D -1): > Value =3D Value.replace(MacroName, > self._AutoGenObject.Macros[macro]) > break > else: > break > - RespDict[Key] =3D Value > + > + if self._AutoGenObject.ToolChainFamily =3D=3D 'G= CC': > + RespDict[Key] =3D Value.replace('\\', '/') > + else: > + RespDict[Key] =3D Value > for Target in BuildTargets: > for i, SingleCommand in > enumerate(BuildTargets[Target].Commands): > if FlagDict[Flag]['Macro'] in SingleComm= and: > BuildTargets[Target].Commands[i] =3D > SingleCommand.replace('$(INC)','').replace(FlagDict[Flag]['Macro'], > RespMacro) > return RespDict > -- > 2.6.1.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel