summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.py b/configure.py
index 1072ca8..287f87f 100755
--- a/configure.py
+++ b/configure.py
@@ -5,7 +5,7 @@ def c_compiler_rule(b, name, description, compiler, flags):
b.rule(name, command, description + " $out", depfile="$out.d")
version_major = 0;
-version_minor = 1;
+version_minor = 2;
version_patch = 0;
from optparse import OptionParser
@@ -66,12 +66,13 @@ def llvm_config(args):
sys.exit(1)
llvm_version = string.split(string.replace(llvm_config(['--version']), 'svn', ''), '.')
-if (int(llvm_version[0]) != 3 and int(llvm_version[1]) != 6):
- print "libclc requires LLVM 3.6"
- sys.exit(1)
-
+llvm_int_version = int(llvm_version[0]) * 100 + int(llvm_version[1]) * 10
llvm_string_version = 'LLVM' + llvm_version[0] + '.' + llvm_version[1]
+if llvm_int_version < 370:
+ print "libclc requires LLVM >= 3.7"
+ sys.exit(1)
+
llvm_system_libs = llvm_config(['--system-libs'])
llvm_bindir = llvm_config(['--bindir'])
llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' ' + \