aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorprazzb <prazzb@gmail.com>2018-08-13 22:55:19 +0530
committerprazzb <prazzb@gmail.com>2018-08-13 22:55:19 +0530
commit6e55f615813b0565a5e8e07941dedc7b2034cd26 (patch)
treedab5d69f67d6f0cea9144c13c8c5af8676aeab86 /cmake
parent65497121f4d82ef16c6ef09dc54a4643d3c47bb3 (diff)
downloadzig-6e55f615813b0565a5e8e07941dedc7b2034cd26.tar.gz
zig-6e55f615813b0565a5e8e07941dedc7b2034cd26.zip
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.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findllvm.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake
index 021c3c6f27..da1758ff14 100644
--- a/cmake/Findllvm.cmake
+++ b/cmake/Findllvm.cmake
@@ -8,7 +8,7 @@
# LLVM_LIBDIRS
find_program(LLVM_CONFIG_EXE
- NAMES llvm-config-6.0 llvm-config
+ NAMES llvm-config llvm-config-6.0
PATHS
"/mingw64/bin"
"/c/msys64/mingw64/bin"