summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorAlexandru-Liviu Prodea <liviuprodea@yahoo.com>2017-09-15 07:26:33 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2017-09-19 12:08:13 +0100
commitc1b01370486d203a6bccff2161afb288cfda1de3 (patch)
tree2dda267905f9556091c68ab251c0b252a9f07281 /scons
parent31237b054e4c425412690b1f047bfede09fb96ac (diff)
Scons: Add LLVM 5.0 support
1 new required library - LLVMBinaryFormat Cc: "17.2" <mesa-stable@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org=/show_bug.cgi?id=3D102318 Signed-off-by: Alexandru-Liviu Prodea <liviuprodea@yahoo.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index 928fc97345..d6a21685df 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',