aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
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 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
+}