mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
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:
parent
e5190d2851
commit
40a4c61cb7
@ -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…
x
Reference in New Issue
Block a user