summaryrefslogtreecommitdiffstats
path: root/libclc/configure.py
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-12-31 15:27:53 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-12-31 15:27:53 +0000
commit1d77071e0dfb692cd9fc9615ce5f9c3e46feb006 (patch)
treeca735f99ab705bb3ca7ce8bb5aecbec284c1ec50 /libclc/configure.py
parent67978556a5eb7e69ba54113c8b3be38e30ebc2a9 (diff)
downloadbcm5719-llvm-1d77071e0dfb692cd9fc9615ce5f9c3e46feb006.tar.gz
bcm5719-llvm-1d77071e0dfb692cd9fc9615ce5f9c3e46feb006.zip
Require LLVM 3.6 and bump version to 0.1.0
Some functions are implemented using hand-written LLVM IR, and LLVM assembly format is allowed to change between versions, so we should require a specific version of LLVM. llvm-svn: 225041
Diffstat (limited to 'libclc/configure.py')
-rwxr-xr-xlibclc/configure.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/libclc/configure.py b/libclc/configure.py
index 7170f46cd7a..d9622443caa 100755
--- a/libclc/configure.py
+++ b/libclc/configure.py
@@ -5,8 +5,8 @@ def c_compiler_rule(b, name, description, compiler, flags):
b.rule(name, command, description + " $out", depfile="$out.d")
version_major = 0;
-version_minor = 0;
-version_patch = 1;
+version_minor = 1;
+version_patch = 0;
from optparse import OptionParser
import os
@@ -64,9 +64,11 @@ def llvm_config(args):
sys.exit(1)
llvm_version = string.split(string.replace(llvm_config(['--version']), 'svn', ''), '.')
-llvm_system_libs = ''
-if (int(llvm_version[0]) == 3 and int(llvm_version[1]) >= 5) or int(llvm_version[0]) > 3:
- llvm_system_libs = llvm_config(['--system-libs'])
+if (int(llvm_version[0]) != 3 and int(llvm_version[1]) != 6):
+ print "libclc requires LLVM 3.6"
+ sys.exit(1)
+
+llvm_system_libs = llvm_config(['--system-libs'])
llvm_bindir = llvm_config(['--bindir'])
llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' ' + \
llvm_system_libs + ' ' + \
OpenPOWER on IntegriCloud