summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Pena <opena@isagri.fr>2015-12-07 17:13:18 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-04-14 22:35:06 +0100
commit48d14b5290d784ea965e45edb94af2dabd9a924d (patch)
tree5f27eb52f8bdf0683d17c2a841c62fd6e84f4222
parent55375c14cec624b4ee30edfdb94c22f4eb53f441 (diff)
scons: support for LLVM 3.7.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit a5256012ef8ea31bc8025fc72193a9772372c9a1) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94195
-rw-r--r--scons/llvm.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index c59b8cb9317..1fc8a3fd13e 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -106,7 +106,19 @@ def generate(env):
])
env.Prepend(LIBPATH = [os.path.join(llvm_dir, 'lib')])
# LIBS should match the output of `llvm-config --libs engine mcjit bitwriter x86asmprinter`
- if llvm_version >= distutils.version.LooseVersion('3.6'):
+ if llvm_version >= distutils.version.LooseVersion('3.7'):
+ env.Prepend(LIBS = [
+ 'LLVMBitWriter', 'LLVMX86Disassembler', 'LLVMX86AsmParser',
+ 'LLVMX86CodeGen', 'LLVMSelectionDAG', 'LLVMAsmPrinter',
+ 'LLVMCodeGen', 'LLVMScalarOpts', 'LLVMProfileData',
+ 'LLVMInstCombine', 'LLVMInstrumentation', 'LLVMTransformUtils', 'LLVMipa',
+ 'LLVMAnalysis', 'LLVMX86Desc', 'LLVMMCDisassembler',
+ 'LLVMX86Info', 'LLVMX86AsmPrinter', 'LLVMX86Utils',
+ 'LLVMMCJIT', 'LLVMTarget', 'LLVMExecutionEngine',
+ 'LLVMRuntimeDyld', 'LLVMObject', 'LLVMMCParser',
+ 'LLVMBitReader', 'LLVMMC', 'LLVMCore', 'LLVMSupport'
+ ])
+ elif llvm_version >= distutils.version.LooseVersion('3.6'):
env.Prepend(LIBS = [
'LLVMBitWriter', 'LLVMX86Disassembler', 'LLVMX86AsmParser',
'LLVMX86CodeGen', 'LLVMSelectionDAG', 'LLVMAsmPrinter',