changeset 1596:42fc0d955a0d

Updated runtest to always rebuild libtangobos-partial.a in case of updates. Changed std.stdarg to import ldc.vararg so it has the correct implementation.
author Robert Clipsham <robert@octarineparrot.com>
date Sun, 15 Nov 2009 13:22:02 +0000
parents 628433c343b4
children 761bf823e59e
files tests/runtest tests/testincludes/std/stdarg.d
diffstat 2 files changed, 13 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tests/runtest	Sun Nov 08 16:16:17 2009 +0000
+++ b/tests/runtest	Sun Nov 15 13:22:02 2009 +0000
@@ -7,13 +7,11 @@
 fi
 TARGETFILE=$1
 
-# check for libtangobos-partial
-if ! [ -f testincludes/libtangobos-partial.a ] ; then
-    echo "Could not find libtangobos-partial.a, attempting to build."
-    cd testincludes
-    make
-    cd ..
-fi
+# build libtangobos-partial
+echo "Building libtangobos-partial.a"
+cd testincludes
+make
+cd ..
 
 # check for dstress
 if ! [ -d dstress ] ; then
--- a/tests/testincludes/std/stdarg.d	Sun Nov 08 16:16:17 2009 +0000
+++ b/tests/testincludes/std/stdarg.d	Sun Nov 15 13:22:02 2009 +0000
@@ -8,6 +8,13 @@
 
 module std.stdarg;
 
+version(LDC)
+{
+    public import ldc.vararg;
+}
+else
+{
+
 alias void* va_list;
 
 template va_arg(T)
@@ -20,3 +27,4 @@
     }
 }
 
+}