projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add the llvm_supports_target function.
[oota-llvm.git]
/
test
/
lib
/
llvm.exp
diff --git
a/test/lib/llvm.exp
b/test/lib/llvm.exp
index e4a52a0c1cbfd01ebb7c1d55d9843447c6dc7af2..b2cb62d8e8a267e6fc293c38515dadeb9e98981f 100644
(file)
--- a/
test/lib/llvm.exp
+++ b/
test/lib/llvm.exp
@@
-218,3
+218,12
@@
proc llvm_gcc_supports_ada { } {
}
}
+proc llvm_supports_target { tgtName } {
+ global TARGETS_TO_BUILD
+ foreach target [split $TARGETS_TO_BUILD] {
+ if { [regexp $tgtName $target match] } {
+ return 1
+ }
+ }
+ return 0
+}