diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-13 01:41:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-13 01:41:18 +0000 |
commit | 840a718105b5792d442af5f9acd08501c1ae469f (patch) | |
tree | 7c7cb3b6fda9be66070b1bdb7087bfb1b3bbb8dc /test/lib/llvm.exp | |
parent | fbc18f839c8dcae38e73ae12bee9d34a416d2fcd (diff) | |
download | external_llvm-840a718105b5792d442af5f9acd08501c1ae469f.zip external_llvm-840a718105b5792d442af5f9acd08501c1ae469f.tar.gz external_llvm-840a718105b5792d442af5f9acd08501c1ae469f.tar.bz2 |
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/llvm.exp')
-rw-r--r-- | test/lib/llvm.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index f5ec6f3..2c1bef9 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 +} |