diff options
Diffstat (limited to 'llvm/test/lib/llvm.exp')
-rw-r--r-- | llvm/test/lib/llvm.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/lib/llvm.exp b/llvm/test/lib/llvm.exp index f5ec6f339ea..2c1bef939af 100644 --- a/llvm/test/lib/llvm.exp +++ b/llvm/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 +} |