[edk2-devel] [PATCH 1/1] BaseTools: Add double quote around CLANG_BIN path string
Steven Shi
steven.shi at intel.com
Mon Apr 19 08:47:17 UTC 2021
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 at intel.com>
> Sent: Monday, April 19, 2021 4:34 PM
> To: Shi, Steven <steven.shi at intel.com>; devel at edk2.groups.io
> Cc: gaoliming at 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 at intel.com>
> Sent: Saturday, April 17, 2021 8:22 PM
> To: devel at edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng at intel.com>; gaoliming at byosoft.com.cn; Shi,
> Steven <steven.shi at 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 at intel.com>
> Cc: Bob Feng <bob.c.feng at intel.com>
> Cc: Liming Gao <gaoliming at 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 (#74252): https://edk2.groups.io/g/devel/message/74252
Mute This Topic: https://groups.io/mt/82163598/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list