authorgravatar for prazzb@gmail.comprazzb <prazzb@gmail.com> 2018-08-13 22:55:19+05:30
committergravatar for prazzb@gmail.comprazzb <prazzb@gmail.com> 2018-08-13 22:55:19+05:30
log6e55f615813b0565a5e8e07941dedc7b2034cd26
treedab5d69f67d6f0cea9144c13c8c5af8676aeab86
parent65497121f4d82ef16c6ef09dc54a4643d3c47bb3

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/Findllvm.cmake+1-1
...@@ -8,7 +8,7 @@...@@ -8,7 +8,7 @@
8# LLVM_LIBDIRS8# LLVM_LIBDIRS
99
10find_program(LLVM_CONFIG_EXE10find_program(LLVM_CONFIG_EXE
11 NAMES llvm-config-6.0 llvm-config11 NAMES llvm-config llvm-config-6.0
12 PATHS12 PATHS
13 "/mingw64/bin"13 "/mingw64/bin"
14 "/c/msys64/mingw64/bin"14 "/c/msys64/mingw64/bin"