Add the llvm_supports_target function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-04-21 20:40:17 +00:00
parent e5190d2851
commit 40a4c61cb7

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
}