Actually run Obj-C++ tests if llvm-gcc supports.
authorDuncan Sands <baldrick@free.fr>
Mon, 6 Oct 2008 10:31:21 +0000 (10:31 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 6 Oct 2008 10:31:21 +0000 (10:31 +0000)
Before there were two problems: (1) configure
turned "obj-c++" into "obj" in the langs line;
(2) the dejagnu library called it objc++ not
obj-c++.
Now the problem is that some of these tests don't
pass!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57167 91177308-0d34-0410-b5e6-96231b3b80d8

configure
test/FrontendObjC++/dg.exp
test/lib/llvm.exp

index 8520c8990891bb54e7703307830ca8541aa1f309..e4e155af41a6ec737333555c36629da48b7fc70c 100755 (executable)
--- a/configure
+++ b/configure
@@ -34242,7 +34242,7 @@ echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
 
   LLVMGCC_MAJVERS=$llvmgccmajvers
 
-  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
+  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
   LLVMGCC_LANGS=$llvmgcclangs
 
   { echo "$as_me:$LINENO: result: ok" >&5
index 15fb0bb484320943f44fad258a6c5dfeaa9a7cfa..41c3db2af097abf1b5bf4b978e44ff1ea530204d 100644 (file)
@@ -1,5 +1,5 @@
 load_lib llvm.exp
 
-if [ llvm_gcc_supports objc++ ] then {
+if [ llvm_gcc_supports obj-c++ ] then {
     RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{mm}]]
 }
index 8c7cbfd214eedf5a7a037221a0af11358b27154b..3d7588dd6e2984ef0bce8f0ebd07cacda0a4c83c 100644 (file)
@@ -237,7 +237,7 @@ proc llvm_gcc_supports { lang } {
     c       { set file cc1 }
     c++     { set file cc1plus }
     objc    { set file cc1obj }
-    objc++  { set file cc1objplus }
+    obj-c++ { set file cc1objplus }
     fortran { set file f951 }
     default { return 0 }
   }