diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-05-14 16:32:44 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-05-14 16:32:44 +0000 |
commit | a012627d4335f72873eb5a9b3064a39fe111f506 (patch) | |
tree | 475c5705f5f80a1077d1e99e7957a717395f0d6d | |
parent | 1f7b12b0e5ff11eb6601c65e00b454ad8a084559 (diff) | |
download | external_llvm-a012627d4335f72873eb5a9b3064a39fe111f506.zip external_llvm-a012627d4335f72873eb5a9b3064a39fe111f506.tar.gz external_llvm-a012627d4335f72873eb5a9b3064a39fe111f506.tar.bz2 |
Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51108 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/LLVMC/dg.exp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/LLVMC/dg.exp b/test/LLVMC/dg.exp index 22ecaec..a2e44b9 100644 --- a/test/LLVMC/dg.exp +++ b/test/LLVMC/dg.exp @@ -1,3 +1,10 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c,cpp}]] +if [ llvm_gcc_supports c ] then { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c}]] +} + +if [ llvm_gcc_supports c++ ] then { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{cpp}]] +} + |