Skip to content

Commit 793f820

Browse files
committed
Revert "cmake/llvm: Don't unset LLVM_CONFIG_EXE"
This reverts commit 28476a5. It also adds a comment to explain the purpose of this line, to prevent this mistake from being repeated.
1 parent 0b0625c commit 793f820

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/Findllvm.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
if(ZIG_USE_LLVM_CONFIG)
1313
set(LLVM_CONFIG_ERROR_MESSAGES "")
1414
while(1)
15+
# If this variable is not unset, the same result is returned even though
16+
# the ignore list has changed, causing the configure process to not
17+
# terminate when the right LLVM version is not found.
18+
unset(LLVM_CONFIG_EXE CACHE)
1519
find_program(LLVM_CONFIG_EXE
1620
NAMES llvm-config-18 llvm-config-18.0 llvm-config180 llvm-config18 llvm-config NAMES_PER_DIR
1721
PATHS

0 commit comments

Comments
 (0)