llvm.org GIT mirror llvm / 9fe9907
Enable Objective-C tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36281 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 13 years ago
2 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 load_lib llvm.exp
1
2 if [ llvm_gcc_supports_objc ] then {
3 RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{m}]]
4 }
5
186186 }
187187 }
188188 }
189
190 proc llvm_gcc_supports_objc { } {
191 global llvmgcc
192 catch { set file_h [ open "/tmp/llvm_obj_check.m" w] }
193 set R [ catch { exec $llvmgcc -c "/tmp/llvm_obj_check.m" -o /dev/null >& /tmp/llvm_obj_check.out } ]
194 set RESULT [ file size "/tmp/llvm_obj_check.out" ]
195 catch { file delete "/tmp/llvm_obj_check.m" }
196 if { $RESULT == 0 } {
197 return 1
198 } else {
199 return 0
200 }
201 }
202