From 40a4c61cb7aade82aa1aaf43c943fa4a463063c3 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 21 Apr 2007 20:40:17 +0000 Subject: [PATCH] Add the llvm_supports_target function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36314 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lib/llvm.exp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +} -- 2.34.1