From: Vinson Lee Date: Sat, 21 Jul 2012 07:44:06 +0000 (-0700) Subject: scons: Add instrumentation component libraries to linking on llvm-3.2. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2e7b467d8a6567437823767af74004a396f1c82;p=mesa.git scons: Add instrumentation component libraries to linking on llvm-3.2. llvm-3.2svn r160587 moved createBoundsCheckingPass from lib/Transforms/Scalar to lib/Transforms/Instrumentation. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- diff --git a/scons/llvm.py b/scons/llvm.py index f87766af190..2fb82f06a04 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -180,6 +180,9 @@ def generate(env): components = ['engine', 'bitwriter', 'x86asmprinter'] + if llvm_version >= distutils.version.LooseVersion('3.2'): + components.append('instrumentation') + if llvm_version >= distutils.version.LooseVersion('3.1'): components.append('mcjit')