Skip to content

Commit 422c8d1

Browse files
committed
Merge from mainline.
Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman! llvm-svn: 51413
1 parent c1e0cbf commit 422c8d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

llvm/test/LLVMC/dg.exp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
load_lib llvm.exp
22

3-
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c,cpp}]]
3+
if [ llvm_gcc_supports c ] then {
4+
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{c}]]
5+
}
6+
7+
if [ llvm_gcc_supports c++ ] then {
8+
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{cpp}]]
9+
}
10+

0 commit comments

Comments
 (0)