scons: Add instrumentation component libraries to linking on llvm-3.2.
authorVinson Lee <vlee@freedesktop.org>
Sat, 21 Jul 2012 07:44:06 +0000 (00:44 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 21 Jul 2012 17:38:25 +0000 (10:38 -0700)
llvm-3.2svn r160587 moved createBoundsCheckingPass from
lib/Transforms/Scalar to lib/Transforms/Instrumentation.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
scons/llvm.py

index f87766af1906d5f067148a752de6d1c3184ae911..2fb82f06a04ca4fdfd9e4e7bc3263d26bb142153 100644 (file)
@@ -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')