diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-03 18:43:46 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-03 18:43:46 +0000 |
commit | 9e2556c7bf9f69aa99e5f44f6593eaf78b0b3fa8 (patch) | |
tree | 4e298c0854f65807a8729b2755281ac8c01c91e8 /test/lib | |
parent | 6cfb8a115ef4dcbf7a157e6a40d8998c3d9f6169 (diff) | |
download | external_llvm-9e2556c7bf9f69aa99e5f44f6593eaf78b0b3fa8.zip external_llvm-9e2556c7bf9f69aa99e5f44f6593eaf78b0b3fa8.tar.gz external_llvm-9e2556c7bf9f69aa99e5f44f6593eaf78b0b3fa8.tar.bz2 |
Add llvm_supports_darwin_and_target to DejaGNU as well, I'd almost forgotten it
ever existed. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/llvm.exp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index 2c1bef9..319cc11 100644 --- a/test/lib/llvm.exp +++ b/test/lib/llvm.exp @@ -301,6 +301,16 @@ proc llvm_supports_target { tgtName } { return 0 } +proc llvm_supports_darwin_and_target { tgtName } { + global target_triplet + if { [ llvm_supports_target $tgtName ] } { + if { [regexp darwin $target_triplet match] } { + return 1 + } + } + return 0 +} + # This procedure provides an interface to check the BINDINGS_TO_BUILD makefile # variable to see if a particular binding has been configured to build. proc llvm_supports_binding { name } { |