[Beignet] FindLLVM: allow LLVM/Clang 3.6

Rebecca N. Palmer rebecca_palmer at zoho.com
Sat Mar 21 00:35:56 PDT 2015


As beignet now works with LLVM/Clang 3.6, accept this version
when searching for llvm-config.

Signed-off-by: Rebecca Palmer <rebecca_palmer at zoho.com>

diff --git a/CMake/FindLLVM.cmake b/CMake/FindLLVM.cmake
index e214437..fa13f1d 100644
--- a/CMake/FindLLVM.cmake
+++ b/CMake/FindLLVM.cmake
@@ -8,12 +8,12 @@
  # LLVM_FOUND       - True if llvm found.
  if (LLVM_INSTALL_DIR)
    find_program(LLVM_CONFIG_EXECUTABLE
-               NAMES llvm-config-35 llvm-config-3.5 llvm-config-33 llvm-config-3.3 llvm-config-34 llvm-config-3.4 llvm-config
+               NAMES llvm-config-35 llvm-config-3.5 llvm-config-36 llvm-config-3.6 llvm-config-33 llvm-config-3.3 llvm-config-34 llvm-config-3.4 llvm-config
                 DOC "llvm-config executable"
                 PATHS ${LLVM_INSTALL_DIR} NO_DEFAULT_PATH)
  else (LLVM_INSTALL_DIR)
    find_program(LLVM_CONFIG_EXECUTABLE
-               NAMES llvm-config-35 llvm-config-3.5 llvm-config-33 llvm-config-3.3 llvm-config-34 llvm-config-3.4 llvm-config
+               NAMES llvm-config-35 llvm-config-3.5 llvm-config-36 llvm-config-3.6 llvm-config-33 llvm-config-3.3 llvm-config-34 llvm-config-3.4 llvm-config
                 DOC "llvm-config executable")
  endif (LLVM_INSTALL_DIR)
  



More information about the Beignet mailing list