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

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 97a4d5e50c
commit c97f1dd57c

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
}