diff options
-rw-r--r-- | test/lib/llvm.exp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index e4a52a0c1c..b2cb62d8e8 100644 --- a/test/lib/llvm.exp +++ b/test/lib/llvm.exp @@ -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 +} |