From: Ben Boeckel Date: Thu, 27 Apr 2017 20:31:48 +0000 (-0400) Subject: scons: update for LLVM 4.0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58f51f0754d736e76248e075bd25424ff4b64b46;p=mesa.git scons: update for LLVM 4.0 LLVMDemangle, LLVMGlobalISel, and LLVMDebugInfoMSF are new. Also update the comment to add irreader to the list of components. CC: Reviewed-by: Chuck Atkins Signed-off-by: Ben Boeckel Acked-by: Emil Velikov Reviewed-by: Jose Fonseca --- diff --git a/scons/llvm.py b/scons/llvm.py index ec816e8a577..928fc973455 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -103,8 +103,26 @@ def generate(env): 'HAVE_STDINT_H', ]) 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.9'): + # LIBS should match the output of `llvm-config --libs engine mcjit bitwriter x86asmprinter irreader` + if llvm_version >= distutils.version.LooseVersion('4.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', + ]) + elif llvm_version >= distutils.version.LooseVersion('3.9'): env.Prepend(LIBS = [ 'LLVMX86Disassembler', 'LLVMX86AsmParser', 'LLVMX86CodeGen', 'LLVMSelectionDAG', 'LLVMAsmPrinter',