| ... | @@ -12,6 +12,10 @@ | ... | @@ -12,6 +12,10 @@ |
| 12 | if(ZIG_USE_LLVM_CONFIG) | 12 | if(ZIG_USE_LLVM_CONFIG) |
| 13 | set(LLVM_CONFIG_ERROR_MESSAGES "") | 13 | set(LLVM_CONFIG_ERROR_MESSAGES "") |
| 14 | while(1) | 14 | 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) |
| 15 | find_program(LLVM_CONFIG_EXE | 19 | find_program(LLVM_CONFIG_EXE |
| 16 | NAMES llvm-config-18 llvm-config-18.0 llvm-config180 llvm-config18 llvm-config NAMES_PER_DIR | 20 | NAMES llvm-config-18 llvm-config-18.0 llvm-config180 llvm-config18 llvm-config NAMES_PER_DIR |
| 17 | PATHS | 21 | PATHS |