[llvm-commits] CVS: llvm/test/lib/llvm.exp
Devang Patel
dpatel at apple.com
Fri Apr 20 14:24:19 PDT 2007
Changes in directory llvm/test/lib:
llvm.exp updated: 1.15 -> 1.16
---
Log message:
Enable Objective-C tests.
---
Diffs of the changes: (+14 -0)
llvm.exp | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/lib/llvm.exp
diff -u llvm/test/lib/llvm.exp:1.15 llvm/test/lib/llvm.exp:1.16
--- llvm/test/lib/llvm.exp:1.15 Mon Apr 16 16:19:45 2007
+++ llvm/test/lib/llvm.exp Fri Apr 20 16:24:01 2007
@@ -187,3 +187,17 @@
}
}
}
+
+proc llvm_gcc_supports_objc { } {
+ global llvmgcc
+ catch { set file_h [ open "/tmp/llvm_obj_check.m" w] }
+ set R [ catch { exec $llvmgcc -c "/tmp/llvm_obj_check.m" -o /dev/null >& /tmp/llvm_obj_check.out } ]
+ set RESULT [ file size "/tmp/llvm_obj_check.out" ]
+ catch { file delete "/tmp/llvm_obj_check.m" }
+ if { $RESULT == 0 } {
+ return 1
+ } else {
+ return 0
+ }
+}
+
More information about the llvm-commits
mailing list