Skip to content

Commit 13391ce

Browse files
authored
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 #135446 (comment)
1 parent dab8c88 commit 13391ce

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)