mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-16 11:05:54 +00:00
827632a569
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66278 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
820 B
Plaintext
28 lines
820 B
Plaintext
load_lib llvm.exp
|
|
|
|
# 'false.c' is really C++, so it must be treated differently.
|
|
set special_file "$srcdir/$subdir/false.c"
|
|
|
|
if [ llvm_gcc_supports c ] then {
|
|
# tcl seems to lack 'filter' which would've made this easier...
|
|
set temp [glob -nocomplain $srcdir/$subdir/*.{c}]
|
|
set c_files [list]
|
|
foreach f $temp { if {$f != $special_file} {lappend c_files $f}}
|
|
|
|
RunLLVMTests [lsort $c_files]
|
|
}
|
|
|
|
if [ llvm_gcc_supports c++ ] then {
|
|
RunLLVMTests [lsort [concat [glob -nocomplain $srcdir/$subdir/*.{cpp}] $special_file]]
|
|
}
|
|
|
|
if [ llvm_gcc_supports objc ] then {
|
|
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
|
|
}
|
|
|
|
if [ llvm_gcc_supports obj-c++ ] then {
|
|
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
|
|
}
|
|
|
|
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{td}]]
|