summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Richter <Simon.Richter@hogyros.de>2013-12-02 14:27:46 +0100
committerZhigang Gong <zhigang.gong@intel.com>2014-01-08 10:58:51 +0800
commitffebe3b5272b7216a8f7666786d82b6c22aa6f81 (patch)
tree0325330cba26921f9a70dafb5b199c0875ee5201
parentd507f29fa3bc7fb29db133488347b8050b6590a1 (diff)
Start looking for LLVM from version 3.3 then higher version.
When different LLVM versions are installed, look for 3.5, 3.4 and 3.3 in order, then try the system default. As configuring for 3.1 and 3.2 gives an error now, drop these versions from the search. v2: change to use llvm 3.3 as the preferred version. update the document accordingly. Signed-off-by: Simon Richter <Simon.Richter@hogyros.de> Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r--CMake/FindLLVM.cmake9
-rw-r--r--docs/Beignet.mdwn2
2 files changed, 8 insertions, 3 deletions
diff --git a/CMake/FindLLVM.cmake b/CMake/FindLLVM.cmake
index 339a0994..6256cb00 100644
--- a/CMake/FindLLVM.cmake
+++ b/CMake/FindLLVM.cmake
@@ -7,9 +7,14 @@
# LLVM_MODULE_LIBS - list of llvm libs for working with modules.
# LLVM_FOUND - True if llvm found.
if (LLVM_INSTALL_DIR)
- find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config-32 llvm-config-3.2 llvm-config-31 llvm-config-3.1 llvm-config-3.4 llvm-config DOC "llvm-config executable" PATHS ${LLVM_INSTALL_DIR} NO_DEFAULT_PATH)
+ find_program(LLVM_CONFIG_EXECUTABLE
+ NAMES llvm-config-33 llvm-config-3.3 llvm-config-35 llvm-config-3.5 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-32 llvm-config-3.2 llvm-config-31 llvm-config-3.1 llvm-config-3.4 llvm-config DOC "llvm-config executable")
+ find_program(LLVM_CONFIG_EXECUTABLE
+ NAMES llvm-config-33 llvm-config-3.3 llvm-config-35 llvm-config-3.5 llvm-config-34 llvm-config-3.4 llvm-config
+ DOC "llvm-config executable")
endif (LLVM_INSTALL_DIR)
if (LLVM_CONFIG_EXECUTABLE)
diff --git a/docs/Beignet.mdwn b/docs/Beignet.mdwn
index 97b568bf..d05950fa 100644
--- a/docs/Beignet.mdwn
+++ b/docs/Beignet.mdwn
@@ -55,7 +55,7 @@ with any thing older.
[http://llvm.org/releases/](http://llvm.org/releases/)
-LLVM 3.1,3.2,3.3 and 3.4 are supported.
+LLVM 3.3 and 3.4 are supported.
Also note that the code was compiled on GCC 4.6 and GCC 4.7. Since the code uses
really recent C++11 features, you may expect problems with older compilers. Last