On Windows, in the release build script, fix detecting if clang-cl is in PATH (#149597)

The checks for detecting if `clang-cl` and `lld-link` are in `%PATH`
were wrong.

This fixes the comment in
https://github.com/llvm/llvm-project/pull/135446#discussion_r2215511129
This commit is contained in:
Alexandre Ganea 2025-08-19 09:13:51 -04:00 committed by GitHub
parent dab8c88f15
commit 13391ce183
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,9 +169,9 @@ set common_cmake_flags=^
if "%force-msvc%" == "" (
where /q clang-cl
if errorlevel 0 (
if %errorlevel% EQU 0 (
where /q lld-link
if errorlevel 0 (
if %errorlevel% EQU 0 (
set common_compiler_flags=%common_compiler_flags% -fuse-ld=lld
set common_cmake_flags=%common_cmake_flags%^