[Mesa-dev] [PATCH] scons: support for llvm 3.7.

Jose Fonseca jfonseca at vmware.com
Tue Dec 8 05:54:35 PST 2015


On 07/12/15 16:13, olivier.pena.80 at gmail.com wrote:
> From: Olivier Pena <opena at isagri.fr>
>
> ---
>   scons/llvm.py | 14 +++++++++++++-
>   1 file changed, 13 insertions(+), 1 deletion(-)
>
> 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',
>


Pushed. Thanks.

Jose


More information about the mesa-dev mailing list