summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2012-07-21 00:44:06 -0700
committerVinson Lee <vlee@freedesktop.org>2012-07-21 10:38:25 -0700
commite2e7b467d8a6567437823767af74004a396f1c82 (patch)
tree706cb64d0dc07634ae0239e092ade1c13b716a48 /scons
parentd24cf88a1a68591397d27efb209a7b8381911ce2 (diff)
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 <vlee@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py3
1 files changed, 3 insertions, 0 deletions
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')