public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string
@ 2021-04-17 12:21 Steven Shi
  2021-04-19  1:06 ` 回复: [edk2-devel] " gaoliming
  2021-04-19  8:34 ` Bob Feng
  0 siblings, 2 replies; 6+ messages in thread
From: Steven Shi @ 2021-04-17 12:21 UTC (permalink / raw)
  To: devel; +Cc: bob.c.feng, gaoliming, Steven Shi

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3341

Current CLANG_BIN env variable is set without double quote
around the LLVM default installation path string in windows,
which causes some CI build service cannot find the LLVM path
in windows.
This patch enhance it to add double quote around it.

Signed-off-by: Steven Shi <steven.shi@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
---
 edksetup.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/edksetup.bat b/edksetup.bat
index 7b9377aaa5c2..7ad137bb3e9b 100755
--- a/edksetup.bat
+++ b/edksetup.bat
@@ -120,7 +120,7 @@ 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\
+        @set "CLANG_BIN=C:\Program Files\LLVM\bin\"
         @echo   Found LLVM, setting CLANG_BIN environment variable to C:\Program Files\LLVM\bin\
     )
 )
-- 
2.28.0.windows.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* 回复: [edk2-devel] [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string
  2021-04-17 12:21 [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string Steven Shi
@ 2021-04-19  1:06 ` gaoliming
  2021-04-19  8:34 ` Bob Feng
  1 sibling, 0 replies; 6+ messages in thread
From: gaoliming @ 2021-04-19  1:06 UTC (permalink / raw)
  To: devel, steven.shi; +Cc: bob.c.feng

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Steven Shi
> 发送时间: 2021年4月17日 20:22
> 收件人: devel@edk2.groups.io
> 抄送: bob.c.feng@intel.com; gaoliming@byosoft.com.cn; Steven Shi
> <steven.shi@intel.com>
> 主题: [edk2-devel] [PATCH 1/1] BaseTools: Add double quote around
> CLANG_BIN path string
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3341
> 
> Current CLANG_BIN env variable is set without double quote
> around the LLVM default installation path string in windows,
> which causes some CI build service cannot find the LLVM path
> in windows.
> This patch enhance it to add double quote around it.
> 
> Signed-off-by: Steven Shi <steven.shi@intel.com>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> ---
>  edksetup.bat | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/edksetup.bat b/edksetup.bat
> index 7b9377aaa5c2..7ad137bb3e9b 100755
> --- a/edksetup.bat
> +++ b/edksetup.bat
> @@ -120,7 +120,7 @@ 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\
> 
> +        @set "CLANG_BIN=C:\Program Files\LLVM\bin\"
> 
>          @echo   Found LLVM, setting CLANG_BIN environment variable
> to C:\Program Files\LLVM\bin\
> 
>      )
> 
>  )
> 
> --
> 2.28.0.windows.1
> 
> 
> 
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#74227): https://edk2.groups.io/g/devel/message/74227
> Mute This Topic: https://groups.io/mt/82163598/4905953
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub
> [gaoliming@byosoft.com.cn]
> -=-=-=-=-=-=
> 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string
  2021-04-17 12:21 [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string Steven Shi
  2021-04-19  1:06 ` 回复: [edk2-devel] " gaoliming
@ 2021-04-19  8:34 ` Bob Feng
  2021-04-19  8:47   ` Steven Shi
  1 sibling, 1 reply; 6+ messages in thread
From: Bob Feng @ 2021-04-19  8:34 UTC (permalink / raw)
  To: Shi, Steven, devel@edk2.groups.io; +Cc: gaoliming@byosoft.com.cn

Steven,

Would you do a little change as

@set CLANG_BIN="c:\Program Files\LLVM\bin\"

I think the double quote should be only round the path.

Thanks,
Bob

-----Original Message-----
From: Shi, Steven <steven.shi@intel.com> 
Sent: Saturday, April 17, 2021 8:22 PM
To: devel@edk2.groups.io
Cc: Feng, Bob C <bob.c.feng@intel.com>; gaoliming@byosoft.com.cn; Shi, Steven <steven.shi@intel.com>
Subject: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3341

Current CLANG_BIN env variable is set without double quote around the LLVM default installation path string in windows, which causes some CI build service cannot find the LLVM path in windows.
This patch enhance it to add double quote around it.

Signed-off-by: Steven Shi <steven.shi@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
---
 edksetup.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/edksetup.bat b/edksetup.bat index 7b9377aaa5c2..7ad137bb3e9b 100755
--- a/edksetup.bat
+++ b/edksetup.bat
@@ -120,7 +120,7 @@ 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\+        @set "CLANG_BIN=C:\Program Files\LLVM\bin\"         @echo   Found LLVM, setting CLANG_BIN environment variable to C:\Program Files\LLVM\bin\     ) )-- 
2.28.0.windows.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string
  2021-04-19  8:34 ` Bob Feng
@ 2021-04-19  8:47   ` Steven Shi
  2021-04-19  9:12     ` Bob Feng
       [not found]     ` <167737869DB0B53D.14647@groups.io>
  0 siblings, 2 replies; 6+ messages in thread
From: Steven Shi @ 2021-04-19  8:47 UTC (permalink / raw)
  To: Feng, Bob C, devel@edk2.groups.io; +Cc: gaoliming@byosoft.com.cn

Hi Bob,
I tried @set CLANG_BIN="c:\Program Files\LLVM\bin\", but it cannot work with my CI build service. Only the @set "CLANG_BIN=C:\Program Files\LLVM\bin\" can works. So, it is necessary to use double quote around the whole setting string, which includes both "=" left name and right value parts.  


Thanks

Steven Shi
Intel\IAGS\SFP\FIA (Firmware Infrastructure Automation)


> -----Original Message-----
> From: Feng, Bob C <bob.c.feng@intel.com>
> Sent: Monday, April 19, 2021 4:34 PM
> To: Shi, Steven <steven.shi@intel.com>; devel@edk2.groups.io
> Cc: gaoliming@byosoft.com.cn
> Subject: RE: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN
> path string
> 
> Steven,
> 
> Would you do a little change as
> 
> @set CLANG_BIN="c:\Program Files\LLVM\bin\"
> 
> I think the double quote should be only round the path.
> 
> Thanks,
> Bob
> 
> -----Original Message-----
> From: Shi, Steven <steven.shi@intel.com>
> Sent: Saturday, April 17, 2021 8:22 PM
> To: devel@edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng@intel.com>; gaoliming@byosoft.com.cn; Shi,
> Steven <steven.shi@intel.com>
> Subject: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path
> string
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3341
> 
> Current CLANG_BIN env variable is set without double quote around the
> LLVM default installation path string in windows, which causes some CI build
> service cannot find the LLVM path in windows.
> This patch enhance it to add double quote around it.
> 
> Signed-off-by: Steven Shi <steven.shi@intel.com>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> ---
>  edksetup.bat | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/edksetup.bat b/edksetup.bat index 7b9377aaa5c2..7ad137bb3e9b
> 100755
> --- a/edksetup.bat
> +++ b/edksetup.bat
> @@ -120,7 +120,7 @@ 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\+        @set
> "CLANG_BIN=C:\Program Files\LLVM\bin\"         @echo   Found LLVM, setting
> CLANG_BIN environment variable to C:\Program Files\LLVM\bin\     ) )--
> 2.28.0.windows.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string
  2021-04-19  8:47   ` Steven Shi
@ 2021-04-19  9:12     ` Bob Feng
       [not found]     ` <167737869DB0B53D.14647@groups.io>
  1 sibling, 0 replies; 6+ messages in thread
From: Bob Feng @ 2021-04-19  9:12 UTC (permalink / raw)
  To: Shi, Steven, devel@edk2.groups.io; +Cc: gaoliming@byosoft.com.cn

OK. 

I also find a similar case in toolsetup.bat line 411
set "PATH=%BASE_TOOLS_PATH%\BinWrappers\WindowsLike;%PATH%"

Reviewed-by: Bob Feng <bob.c.feng@intel.com>

Thanks,
Bob
-----Original Message-----
From: Shi, Steven <steven.shi@intel.com> 
Sent: Monday, April 19, 2021 4:47 PM
To: Feng, Bob C <bob.c.feng@intel.com>; devel@edk2.groups.io
Cc: gaoliming@byosoft.com.cn
Subject: RE: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string

Hi Bob,
I tried @set CLANG_BIN="c:\Program Files\LLVM\bin\", but it cannot work with my CI build service. Only the @set "CLANG_BIN=C:\Program Files\LLVM\bin\" can works. So, it is necessary to use double quote around the whole setting string, which includes both "=" left name and right value parts.  


Thanks

Steven Shi
Intel\IAGS\SFP\FIA (Firmware Infrastructure Automation)


> -----Original Message-----
> From: Feng, Bob C <bob.c.feng@intel.com>
> Sent: Monday, April 19, 2021 4:34 PM
> To: Shi, Steven <steven.shi@intel.com>; devel@edk2.groups.io
> Cc: gaoliming@byosoft.com.cn
> Subject: RE: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN 
> path string
> 
> Steven,
> 
> Would you do a little change as
> 
> @set CLANG_BIN="c:\Program Files\LLVM\bin\"
> 
> I think the double quote should be only round the path.
> 
> Thanks,
> Bob
> 
> -----Original Message-----
> From: Shi, Steven <steven.shi@intel.com>
> Sent: Saturday, April 17, 2021 8:22 PM
> To: devel@edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng@intel.com>; gaoliming@byosoft.com.cn; Shi, 
> Steven <steven.shi@intel.com>
> Subject: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path 
> string
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3341
> 
> Current CLANG_BIN env variable is set without double quote around the 
> LLVM default installation path string in windows, which causes some CI 
> build service cannot find the LLVM path in windows.
> This patch enhance it to add double quote around it.
> 
> Signed-off-by: Steven Shi <steven.shi@intel.com>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> ---
>  edksetup.bat | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/edksetup.bat b/edksetup.bat index 
> 7b9377aaa5c2..7ad137bb3e9b
> 100755
> --- a/edksetup.bat
> +++ b/edksetup.bat
> @@ -120,7 +120,7 @@ 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\+        @set
> "CLANG_BIN=C:\Program Files\LLVM\bin\"         @echo   Found LLVM, setting
> CLANG_BIN environment variable to C:\Program Files\LLVM\bin\     ) )--
> 2.28.0.windows.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [edk2-devel] [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string
       [not found]     ` <167737869DB0B53D.14647@groups.io>
@ 2021-04-20 10:17       ` Bob Feng
  0 siblings, 0 replies; 6+ messages in thread
From: Bob Feng @ 2021-04-20 10:17 UTC (permalink / raw)
  To: devel@edk2.groups.io, Feng, Bob C, Shi, Steven; +Cc: gaoliming@byosoft.com.cn

Created a PR https://github.com/tianocore/edk2/pull/1580

-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Bob Feng
Sent: Monday, April 19, 2021 5:13 PM
To: Shi, Steven <steven.shi@intel.com>; devel@edk2.groups.io
Cc: gaoliming@byosoft.com.cn
Subject: Re: [edk2-devel] [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string

OK. 

I also find a similar case in toolsetup.bat line 411 set "PATH=%BASE_TOOLS_PATH%\BinWrappers\WindowsLike;%PATH%"

Reviewed-by: Bob Feng <bob.c.feng@intel.com>

Thanks,
Bob
-----Original Message-----
From: Shi, Steven <steven.shi@intel.com>
Sent: Monday, April 19, 2021 4:47 PM
To: Feng, Bob C <bob.c.feng@intel.com>; devel@edk2.groups.io
Cc: gaoliming@byosoft.com.cn
Subject: RE: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string

Hi Bob,
I tried @set CLANG_BIN="c:\Program Files\LLVM\bin\", but it cannot work with my CI build service. Only the @set "CLANG_BIN=C:\Program Files\LLVM\bin\" can works. So, it is necessary to use double quote around the whole setting string, which includes both "=" left name and right value parts.


Thanks

Steven Shi
Intel\IAGS\SFP\FIA (Firmware Infrastructure Automation)


> -----Original Message-----
> From: Feng, Bob C <bob.c.feng@intel.com>
> Sent: Monday, April 19, 2021 4:34 PM
> To: Shi, Steven <steven.shi@intel.com>; devel@edk2.groups.io
> Cc: gaoliming@byosoft.com.cn
> Subject: RE: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN 
> path string
> 
> Steven,
> 
> Would you do a little change as
> 
> @set CLANG_BIN="c:\Program Files\LLVM\bin\"
> 
> I think the double quote should be only round the path.
> 
> Thanks,
> Bob
> 
> -----Original Message-----
> From: Shi, Steven <steven.shi@intel.com>
> Sent: Saturday, April 17, 2021 8:22 PM
> To: devel@edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng@intel.com>; gaoliming@byosoft.com.cn; Shi, 
> Steven <steven.shi@intel.com>
> Subject: [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path 
> string
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3341
> 
> Current CLANG_BIN env variable is set without double quote around the 
> LLVM default installation path string in windows, which causes some CI 
> build service cannot find the LLVM path in windows.
> This patch enhance it to add double quote around it.
> 
> Signed-off-by: Steven Shi <steven.shi@intel.com>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> ---
>  edksetup.bat | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/edksetup.bat b/edksetup.bat index 
> 7b9377aaa5c2..7ad137bb3e9b
> 100755
> --- a/edksetup.bat
> +++ b/edksetup.bat
> @@ -120,7 +120,7 @@ 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\+        @set
> "CLANG_BIN=C:\Program Files\LLVM\bin\"         @echo   Found LLVM, setting
> CLANG_BIN environment variable to C:\Program Files\LLVM\bin\     ) )--
> 2.28.0.windows.1







^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-20 10:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-17 12:21 [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string Steven Shi
2021-04-19  1:06 ` 回复: [edk2-devel] " gaoliming
2021-04-19  8:34 ` Bob Feng
2021-04-19  8:47   ` Steven Shi
2021-04-19  9:12     ` Bob Feng
     [not found]     ` <167737869DB0B53D.14647@groups.io>
2021-04-20 10:17       ` [edk2-devel] " Bob Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox