From nobody Sun Apr 28 11:48:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+52451+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52451+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1576827345; cv=none; d=zohomail.com; s=zohoarc; b=j4F3vaVv9MiEkinUrlnuB72vcv7nmCuXjClZV5vxwf8SFULgwlAyFKmaAJ5noMWkFykL0AQ0whE9iIWQ9Gm/TfB4aU6zmZDldYbnWu+rduvYhGkMq2oxKnH8/hex0bT/fjgJBe+JC035bwsNSSU+yiD9LbVGuYpjssy2Z/YkL28= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576827345; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=YQmw53C4hXvDt/KvTvg1I5vxEXCxiiOt7YY8pt8eTbE=; b=B7D9At5ZMpUw6MqrKDtQQkp2z+PGVfNy/153oPVtNySjbTZEX8tdy25qX50C80nuVX11oanU4UYD90bVFV0bZcofet7mnGOMdfkIrFctRAtzFGp7gr6xPhNGEZEgnNwnpJk+YTylC3Jy7vkIrdAWWtlragMFh0QrHAR1d28JJjI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52451+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1576827345706965.9746875518084; Thu, 19 Dec 2019 23:35:45 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id QnOoYY1788612xyQ2N6AZB4r; Thu, 19 Dec 2019 23:35:44 -0800 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.6406.1576827343208049898 for ; Thu, 19 Dec 2019 23:35:43 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2019 23:35:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,335,1571727600"; d="scan'208";a="298950499" X-Received: from fieedk002.ccr.corp.intel.com ([10.239.158.170]) by orsmga001.jf.intel.com with ESMTP; 19 Dec 2019 23:35:37 -0800 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Liming Gao , Ray Ni , Laszlo Ersek Subject: [edk2-devel] [PATCH] edksetup.bat: Simplify the step to use CLANGPDB Date: Fri, 20 Dec 2019 15:35:12 +0800 Message-Id: <20191220073512.147180-1-zhiguang.liu@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhiguang.liu@intel.com X-Gm-Message-State: dp84XXJLXplYFhKNPzgHhz4dx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1576827344; bh=msDwMTbCEzpt5op6A3/gfhpDOlDTsre++9K8E4E7h5U=; h=Cc:Date:From:Reply-To:Subject:To; b=sLclyeyb9CyXrxM27/qwPq93uOEImu2Y96U1kuojSYuTX4/qhS+ZpT7y2d2I88sf52e jGbbRjYWYz7EKEj/axFpuQvtVr4Ptbt7KlNXaJEjPrTM3SbACWK72uDV3x7g1F4zdlakh P25tjus68zLp8kaSjMm5HL6QLKbNr+FANdA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2404 Set the below two environment variables in edksetup.bat: set CLANG_HOST_BIN=3Dn set CLANG_BIN=3DC:\Program Files\LLVM\bin\ The CLANG_BIN is only be set if it is not defined. Cc: Liming Gao Cc: Ray Ni Cc: Laszlo Ersek Signed-off-by: Zhiguang Liu --- edksetup.bat | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/edksetup.bat b/edksetup.bat index 024f57a4b7..bd057d1241 100755 --- a/edksetup.bat +++ b/edksetup.bat @@ -113,6 +113,17 @@ if not defined NASM_PREFIX ( @if not exist "C:\nasm\nasm.exe" echo Attempting to build modules th= at require NASM will fail. ) =20 +:check_CLANGPDB +@set CLANG_HOST_BIN=3Dn +if not defined CLANG_BIN ( + @echo. + @echo !!! WARNING !!! CLANG_BIN environment variable is not set + @if exist "C:\Program Files\LLVM\bin\clang.exe" ( + @set CLANG_BIN=3DC:\Program Files\LLVM\bin\ + @echo Found LLVM, setting the environment variable to C:\Program= Files\LLVM\bin\ + ) +) + :check_cygwin if defined CYGWIN_HOME ( if not exist "%CYGWIN_HOME%" ( --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#52451): https://edk2.groups.io/g/devel/message/52451 Mute This Topic: https://groups.io/mt/68845983/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-