mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Revert "cmake/llvm: Don't unset LLVM_CONFIG_EXE"
This reverts commit 28476a5ee9.
It also adds a comment to explain the purpose of this line, to prevent
this mistake from being repeated.
This commit is contained in:
parent
0b0625ccf4
commit
793f820b39
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,10 @@
|
||||||
if(ZIG_USE_LLVM_CONFIG)
|
if(ZIG_USE_LLVM_CONFIG)
|
||||||
set(LLVM_CONFIG_ERROR_MESSAGES "")
|
set(LLVM_CONFIG_ERROR_MESSAGES "")
|
||||||
while(1)
|
while(1)
|
||||||
|
# If this variable is not unset, the same result is returned even though
|
||||||
|
# the ignore list has changed, causing the configure process to not
|
||||||
|
# terminate when the right LLVM version is not found.
|
||||||
|
unset(LLVM_CONFIG_EXE CACHE)
|
||||||
find_program(LLVM_CONFIG_EXE
|
find_program(LLVM_CONFIG_EXE
|
||||||
NAMES llvm-config-18 llvm-config-18.0 llvm-config180 llvm-config18 llvm-config NAMES_PER_DIR
|
NAMES llvm-config-18 llvm-config-18.0 llvm-config180 llvm-config18 llvm-config NAMES_PER_DIR
|
||||||
PATHS
|
PATHS
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue