1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

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 45ef2ed050
commit 37b3f25e19

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