From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: zhiguang.liu@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False 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" 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: [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> X-Mailer: git-send-email 2.16.2.windows.1 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2404 Set the below two environment variables in edksetup.bat: set CLANG_HOST_BIN=n set CLANG_BIN=C:\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 that require NASM will fail. ) +:check_CLANGPDB +@set CLANG_HOST_BIN=n +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=C:\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%" ( -- 2.16.2.windows.1