OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5190d2
)
Add the llvm_supports_target function.
author
Reid Spencer
<rspencer@reidspencer.com>
Sat, 21 Apr 2007 20:40:17 +0000
(20:40 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Sat, 21 Apr 2007 20:40:17 +0000
(20:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36314
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/lib/llvm.exp
patch
|
blob
|
history
diff --git
a/test/lib/llvm.exp
b/test/lib/llvm.exp
index
e4a52a0
..
b2cb62d
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
+}