Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman!

llvm-svn: 51108
This commit is contained in:
Tanya Lattner 2008-05-14 16:32:44 +00:00
parent 7fc6027873
commit f85405fced
1 changed files with 8 additions and 1 deletions

View File

@ -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}]]
}