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:
parent
97a4d5e50c
commit
c97f1dd57c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user