* [Patch V2] edksetup.bat: Simplify the step to use CLANGPDB
@ 2019-12-20 8:32 Zhiguang Liu
2019-12-20 8:36 ` Ni, Ray
2020-01-06 6:05 ` Liming Gao
0 siblings, 2 replies; 3+ messages in thread
From: Zhiguang Liu @ 2019-12-20 8:32 UTC (permalink / raw)
To: devel; +Cc: Liming Gao, Ray Ni, Laszlo Ersek
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\
In Windows, set CLANG_HOST_BIN=n to use nmake command
The CLANG_BIN is only be set if it is not defined.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
---
edksetup.bat | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/edksetup.bat b/edksetup.bat
index 024f57a4b7..7b9377aaa5 100755
--- a/edksetup.bat
+++ b/edksetup.bat
@@ -113,6 +113,18 @@ if not defined NASM_PREFIX (
@if not exist "C:\nasm\nasm.exe" echo Attempting to build modules that require NASM will fail.
)
+:check_CLANGPDB
+@REM In Windows, set CLANG_HOST_BIN=n to use nmake command
+@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 CLANG_BIN environment variable to C:\Program Files\LLVM\bin\
+ )
+)
+
:check_cygwin
if defined CYGWIN_HOME (
if not exist "%CYGWIN_HOME%" (
--
2.16.2.windows.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Patch V2] edksetup.bat: Simplify the step to use CLANGPDB
2019-12-20 8:32 [Patch V2] edksetup.bat: Simplify the step to use CLANGPDB Zhiguang Liu
@ 2019-12-20 8:36 ` Ni, Ray
2020-01-06 6:05 ` Liming Gao
1 sibling, 0 replies; 3+ messages in thread
From: Ni, Ray @ 2019-12-20 8:36 UTC (permalink / raw)
To: Zhiguang Liu, devel; +Cc: Liming Gao, Laszlo Ersek
Reviewed-by:Ray Ni <ray.ni@intel.com>
--
Thanks,
Ray
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Patch V2] edksetup.bat: Simplify the step to use CLANGPDB
2019-12-20 8:32 [Patch V2] edksetup.bat: Simplify the step to use CLANGPDB Zhiguang Liu
2019-12-20 8:36 ` Ni, Ray
@ 2020-01-06 6:05 ` Liming Gao
1 sibling, 0 replies; 3+ messages in thread
From: Liming Gao @ 2020-01-06 6:05 UTC (permalink / raw)
To: Liu, Zhiguang, devel@edk2.groups.io; +Cc: Ni, Ray, Laszlo Ersek
Reviewed-by: Liming Gao <liming.gao@intel.com>
-----Original Message-----
From: Liu, Zhiguang <zhiguang.liu@intel.com>
Sent: 2019年12月20日 16:32
To: devel@edk2.groups.io
Cc: Gao, Liming <liming.gao@intel.com>; Ni, Ray <ray.ni@intel.com>; Laszlo Ersek <lersek@redhat.com>
Subject: [Patch V2] edksetup.bat: Simplify the step to use CLANGPDB
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\ In Windows, set CLANG_HOST_BIN=n to use nmake command The CLANG_BIN is only be set if it is not defined.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
---
edksetup.bat | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/edksetup.bat b/edksetup.bat index 024f57a4b7..7b9377aaa5 100755
--- a/edksetup.bat
+++ b/edksetup.bat
@@ -113,6 +113,18 @@ if not defined NASM_PREFIX (
@if not exist "C:\nasm\nasm.exe" echo Attempting to build modules that require NASM will fail.
)
+:check_CLANGPDB
+@REM In Windows, set CLANG_HOST_BIN=n to use nmake command @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 CLANG_BIN environment variable to C:\Program Files\LLVM\bin\
+ )
+)
+
:check_cygwin
if defined CYGWIN_HOME (
if not exist "%CYGWIN_HOME%" (
--
2.16.2.windows.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-06 6:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-20 8:32 [Patch V2] edksetup.bat: Simplify the step to use CLANGPDB Zhiguang Liu
2019-12-20 8:36 ` Ni, Ray
2020-01-06 6:05 ` Liming Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox