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:
parent
dab8c88f15
commit
13391ce183
@ -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%^
|
||||
|
Loading…
x
Reference in New Issue
Block a user