Skip to content

Commit 333bdbb

Browse files
aganeatru
authored andcommitted
On Windows, in the release build script, fix detecting if clang-cl is in PATH (llvm#149597)
The checks for detecting if `clang-cl` and `lld-link` are in `%PATH` were wrong. This fixes the comment in llvm#135446 (comment) (cherry picked from commit 13391ce)
1 parent 53aa823 commit 333bdbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/release/build_llvm_release.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ set common_cmake_flags=^
169169

170170
if "%force-msvc%" == "" (
171171
where /q clang-cl
172-
if errorlevel 0 (
172+
if %errorlevel% EQU 0 (
173173
where /q lld-link
174-
if errorlevel 0 (
174+
if %errorlevel% EQU 0 (
175175
set common_compiler_flags=%common_compiler_flags% -fuse-ld=lld
176176

177177
set common_cmake_flags=%common_cmake_flags%^

0 commit comments

Comments
 (0)