Skip to content

Commit 2b4f49b

Browse files
committed
Try llvm-config binaries with version suffix.
This allows us to pick up the newest available version on several common Debian derivatives. GitHub: Fixes #376.
1 parent b9722d6 commit 2b4f49b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/Modules/FindLLVM.cmake

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
# Note: The variable names were chosen in conformance with the offical CMake
2323
# guidelines, see ${CMAKE_ROOT}/Modules/readme.txt.
2424

25-
find_program(LLVM_CONFIG llvm-config ${LLVM_ROOT_DIR}/bin
25+
# Try suffixed versions to pick up the newest LLVM install available on Debian
26+
# derivatives.
27+
find_program(LLVM_CONFIG
28+
NAMES llvm-config-3.3 llvm-config-3.2 llvm-config-3.1 llvm-config
29+
PATHS ${LLVM_ROOT_DIR}/bin
2630
DOC "Path to llvm-config tool.")
2731

2832
if (NOT LLVM_CONFIG)

0 commit comments

Comments
 (0)