Add the llvm_supports_target function.

llvm-svn: 36314
This commit is contained in:
Reid Spencer 2007-04-21 20:40:17 +00:00
parent b39d96e59c
commit 9e56986407
1 changed files with 9 additions and 0 deletions

View File

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