Find local llvm-config first
Distro's llvm usually have a 6.0 suffix.Any custom llvm build
names the binary as llvm-config.Keeping 6.0 variant first causes
the distro's llvm to be compiled in place of a custom one even if
given using CMAKE_PREFIX_PATH.
1 files changed, 1 insertions(+), 1 deletions(-)
cmake
cmake/Findllvm.cmake+1-1
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | # LLVM_LIBDIRS |
| 9 | 9 | |
| 10 | 10 | find_program(LLVM_CONFIG_EXE |
| 11 | | NAMES llvm-config-6.0 llvm-config |
| 11 | NAMES llvm-config llvm-config-6.0 |
| 12 | 12 | PATHS |
| 13 | 13 | "/mingw64/bin" |
| 14 | 14 | "/c/msys64/mingw64/bin" |