diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-03-06 09:34:04 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-03-06 09:34:31 +0000 |
commit | 44703217f73095c4946e06057e399e447b252576 (patch) | |
tree | 37be95e8bb17048c4964095aa80eb50ea187967d /scons | |
parent | 19a633310feb3283d979c4ab4cb11a53dcfb6af6 (diff) |
scons: Refuse to use LLVM 2.7 for now.
LLVM's trunk is totally broken, at least for x86_64.
See http://www.llvm.org/bugs/show_bug.cgi?id=6429
Diffstat (limited to 'scons')
-rw-r--r-- | scons/llvm.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scons/llvm.py b/scons/llvm.py index 01eae2403a..c8e50c5916 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -82,6 +82,11 @@ def generate(env): print 'scons: could not determine the LLVM version from %s' % llvm_config return + if llvm_version >= distutils.version.LooseVersion('2.7'): + print 'scons: Ignoring unsupported LLVM version %s' % llvm_version + print 'scons: See http://www.llvm.org/bugs/show_bug.cgi?id=6429' + return + env.Prepend(CPPPATH = [os.path.join(llvm_dir, 'include')]) env.AppendUnique(CPPDEFINES = [ '__STDC_LIMIT_MACROS', @@ -133,6 +138,11 @@ def generate(env): llvm_version = env.backtick('llvm-config --version').rstrip() llvm_version = distutils.version.LooseVersion(llvm_version) + if llvm_version >= distutils.version.LooseVersion('2.7'): + print 'scons: Ignoring unsupported LLVM version %s' % llvm_version + print 'scons: See http://www.llvm.org/bugs/show_bug.cgi?id=6429' + return + try: env.ParseConfig('llvm-config --cppflags') env.ParseConfig('llvm-config --libs jit interpreter nativecodegen bitwriter') |