diff options
author | Olivier Pena <opena@isagri.fr> | 2015-12-07 17:13:18 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-12-08 13:53:31 +0000 |
commit | a5256012ef8ea31bc8025fc72193a9772372c9a1 (patch) | |
tree | a0be94117161e4f533d0ff0acdd0d337189e12ab /scons | |
parent | bd47fcd57b6597772b0d77ccd193d74b9a98aef8 (diff) | |
download | external_mesa3d-a5256012ef8ea31bc8025fc72193a9772372c9a1.zip external_mesa3d-a5256012ef8ea31bc8025fc72193a9772372c9a1.tar.gz external_mesa3d-a5256012ef8ea31bc8025fc72193a9772372c9a1.tar.bz2 |
scons: support for LLVM 3.7.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'scons')
-rw-r--r-- | scons/llvm.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scons/llvm.py b/scons/llvm.py index c59b8cb..1fc8a3f 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', |