diff options
author | Alexandru-Liviu Prodea <[email protected]> | 2017-09-15 07:26:33 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-09-19 12:08:13 +0100 |
commit | c1b01370486d203a6bccff2161afb288cfda1de3 (patch) | |
tree | 2dda267905f9556091c68ab251c0b252a9f07281 /scons/llvm.py | |
parent | 31237b054e4c425412690b1f047bfede09fb96ac (diff) |
Scons: Add LLVM 5.0 support
1 new required library - LLVMBinaryFormat
Cc: "17.2" <[email protected]>
Bugzilla: https://bugs.freedesktop.org=/show_bug.cgi?id=3D102318
Signed-off-by: Alexandru-Liviu Prodea <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'scons/llvm.py')
-rw-r--r-- | scons/llvm.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/scons/llvm.py b/scons/llvm.py index 928fc973455..d6a21685df5 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -104,7 +104,26 @@ 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 irreader` - if llvm_version >= distutils.version.LooseVersion('4.0'): + if llvm_version >= distutils.version.LooseVersion('5.0'): + env.Prepend(LIBS = [ + 'LLVMX86Disassembler', 'LLVMX86AsmParser', + 'LLVMX86CodeGen', 'LLVMSelectionDAG', 'LLVMAsmPrinter', + 'LLVMDebugInfoCodeView', 'LLVMCodeGen', + 'LLVMScalarOpts', 'LLVMInstCombine', + 'LLVMTransformUtils', + 'LLVMBitWriter', 'LLVMX86Desc', + 'LLVMMCDisassembler', 'LLVMX86Info', + 'LLVMX86AsmPrinter', 'LLVMX86Utils', + 'LLVMMCJIT', 'LLVMExecutionEngine', 'LLVMTarget', + 'LLVMAnalysis', 'LLVMProfileData', + 'LLVMRuntimeDyld', 'LLVMObject', 'LLVMMCParser', + 'LLVMBitReader', 'LLVMMC', 'LLVMCore', + 'LLVMSupport', + 'LLVMIRReader', 'LLVMAsmParser', + 'LLVMDemangle', 'LLVMGlobalISel', 'LLVMDebugInfoMSF', + 'LLVMBinaryFormat', + ]) + elif llvm_version >= distutils.version.LooseVersion('4.0'): env.Prepend(LIBS = [ 'LLVMX86Disassembler', 'LLVMX86AsmParser', 'LLVMX86CodeGen', 'LLVMSelectionDAG', 'LLVMAsmPrinter', |