diff options
author | Aaron Watry <awatry@gmail.com> | 2013-12-29 16:39:53 +0000 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2013-12-29 16:39:53 +0000 |
commit | b38037f7b79e8cf72f560539b3b78cf2419ebcbc (patch) | |
tree | 694ca6087ecbc231a455ead773472def2fc0e420 /libclc/configure.py | |
parent | 0a062bd22591419a80e3ddf6391d78603c62f6da (diff) | |
download | bcm5719-llvm-b38037f7b79e8cf72f560539b3b78cf2419ebcbc.tar.gz bcm5719-llvm-b38037f7b79e8cf72f560539b3b78cf2419ebcbc.zip |
Fix build with LLVM 3.5
Reviewed-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 198167
Diffstat (limited to 'libclc/configure.py')
-rwxr-xr-x | libclc/configure.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libclc/configure.py b/libclc/configure.py index 1c6929f62dd..2038b11b637 100755 --- a/libclc/configure.py +++ b/libclc/configure.py @@ -10,6 +10,7 @@ version_patch = 1; from optparse import OptionParser import os +import string from subprocess import * import sys @@ -62,8 +63,13 @@ def llvm_config(args): print "Please ensure that llvm-config is in your $PATH, or use --with-llvm-config." 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']) llvm_bindir = llvm_config(['--bindir']) llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' ' + \ + llvm_system_libs + ' ' + \ llvm_config(['--ldflags']) llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti' |