From: Reid Spencer Date: Sat, 21 Apr 2007 20:40:17 +0000 (+0000) Subject: Add the llvm_supports_target function. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=40a4c61cb7aade82aa1aaf43c943fa4a463063c3;p=oota-llvm.git Add the llvm_supports_target function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36314 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index e4a52a0c1cb..b2cb62d8e8a 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 +}