summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2020-10-20 15:28:56 -0700
committerVinson Lee <vlee@freedesktop.org>2020-10-23 17:17:01 -0700
commit9d3b802c6a999332181078575e0581f6739dcc25 (patch)
tree9b70c023f334ef4a04bfba484deebe4c669cad6d /scons
parentf21dd3bc5a06e700988926522f81727efde7123c (diff)
scons/windows: Support build with LLVM 11.
Added LLVMFrontendOpenMP. Removed LLVMX86Utils. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7242>
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index dac3555995b..6d837e7d402 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -111,7 +111,30 @@ def generate(env):
# and `llvm-config --libs engine coroutines` for LLVM>=8.0
# LLVMAggressiveInstCombine library part of engine component since LLVM 6 is only needed by Mesa3D for LLVM>=8.
# While not directly needed by Mesa3D, this library is needed by LLVMipo which is part of coroutines component.
- if llvm_version >= distutils.version.LooseVersion('10.0'):
+ if llvm_version >= distutils.version.LooseVersion('11.0'):
+ env.Prepend(LIBS = [
+ 'LLVMX86Disassembler', 'LLVMX86AsmParser',
+ 'LLVMX86CodeGen', 'LLVMSelectionDAG', 'LLVMAsmPrinter',
+ 'LLVMDebugInfoCodeView', 'LLVMCodeGen',
+ 'LLVMScalarOpts', 'LLVMInstCombine',
+ 'LLVMTransformUtils',
+ 'LLVMBitWriter', 'LLVMX86Desc',
+ 'LLVMMCDisassembler', 'LLVMX86Info',
+ 'LLVMMCJIT', 'LLVMExecutionEngine', 'LLVMTarget',
+ 'LLVMAnalysis', 'LLVMProfileData',
+ 'LLVMRuntimeDyld', 'LLVMObject', 'LLVMMCParser',
+ 'LLVMBitReader', 'LLVMMC', 'LLVMCore',
+ 'LLVMSupport',
+ 'LLVMIRReader', 'LLVMAsmParser',
+ 'LLVMDemangle', 'LLVMGlobalISel', 'LLVMDebugInfoMSF',
+ 'LLVMBinaryFormat',
+ 'LLVMRemarks', 'LLVMBitstreamReader', 'LLVMDebugInfoDWARF',
+ 'LLVMAggressiveInstCombine','LLVMLinker', 'LLVMVectorize',
+ 'LLVMInstrumentation', 'LLVMipo', 'LLVMCoroutines',
+ 'LLVMCFGuard', 'LLVMTextAPI',
+ 'LLVMFrontendOpenMP',
+ ])
+ elif llvm_version >= distutils.version.LooseVersion('10.0'):
env.Prepend(LIBS = [
'LLVMX86Disassembler', 'LLVMX86AsmParser',
'LLVMX86CodeGen', 'LLVMSelectionDAG', 'LLVMAsmPrinter',