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

ever existed. :)

llvm-svn: 95230
This commit is contained in:
Daniel Dunbar 2010-02-03 18:43:46 +00:00
parent 696d965708
commit c0f5f284d4
1 changed files with 10 additions and 0 deletions

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 } {