From 10e1768c3725df889b042a80e1069593aea9ae48 Mon Sep 17 00:00:00 2001 From: Robert Clipsham Date: Sun, 15 Nov 2009 13:22:02 +0000 Subject: [PATCH] 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. --- tests/runtest | 12 +++++------- tests/testincludes/std/stdarg.d | 8 ++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tests/runtest b/tests/runtest index 49ca5174..691cfa6b 100755 --- a/tests/runtest +++ b/tests/runtest @@ -7,13 +7,11 @@ if [ -z "$1" ] ; then 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 diff --git a/tests/testincludes/std/stdarg.d b/tests/testincludes/std/stdarg.d index 9e69f6f4..2d2274dc 100644 --- a/tests/testincludes/std/stdarg.d +++ b/tests/testincludes/std/stdarg.d @@ -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 @@ template va_arg(T) } } +}