Add llvm_supports_darwin_and_target to DejaGNU as well, I'd almost forgotten it

ever existed. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2010-02-03 18:43:46 +00:00
parent 6cfb8a115e
commit 9e2556c7bf

View File

@ -301,6 +301,16 @@ proc llvm_supports_target { tgtName } {
return 0
}
proc llvm_supports_darwin_and_target { tgtName } {
global target_triplet
if { [ llvm_supports_target $tgtName ] } {
if { [regexp darwin $target_triplet match] } {
return 1
}
}
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 } {