aboutsummaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-13 01:41:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-13 01:41:18 +0000
commit840a718105b5792d442af5f9acd08501c1ae469f (patch)
tree7c7cb3b6fda9be66070b1bdb7087bfb1b3bbb8dc /test/lib
parentfbc18f839c8dcae38e73ae12bee9d34a416d2fcd (diff)
tests: Add llvm_supports_binding predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/llvm.exp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index f5ec6f339e..2c1bef939a 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -300,3 +300,15 @@ proc llvm_supports_target { tgtName } {
}
return 0
}
+
+# This procedure provides an interface to check the BINDINGS_TO_BUILD makefile
+# variable to see if a particular binding has been configured to build.
+proc llvm_supports_binding { name } {
+ global llvm_bindings
+ foreach item [split $llvm_bindings] {
+ if { [regexp $name $item match] } {
+ return 1
+ }
+ }
+ return 0
+}