From cb29c106606f0d6076c55c7a7b9d77a5d83810ad Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 15 Aug 2011 08:25:08 -0700 Subject: [PATCH] Fix tests on Windows: need arch=x86 since ispc_test.exe is a32-bit app --- run_tests.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index bbdfe620..60b6e4a2 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -23,6 +23,12 @@ EOF esac done +ISPC_ARCH=x86-64 +if [[ $OS == "Windows_NT" ]]; then + ISPC_ARCH=x86 +fi +ISPC_ARGS="--target=$target --arch=$ISPC_ARCH -O2 --woff" + shift $(( $OPTIND - 1 )) if [[ "$1" > 0 ]]; then while [[ "$1" > 0 ]]; do @@ -31,7 +37,7 @@ if [[ "$1" > 0 ]]; then echo Running test $i bc=${i%%ispc}bc - ispc -O2 $i -woff -o $bc --emit-llvm --target=$target + ispc $ISPC_ARGS $i -o $bc --emit-llvm if [[ $? != 0 ]]; then surprises=1 echo Test $i FAILED ispc compile @@ -55,7 +61,7 @@ else fi (( counter++ )) bc=${i%%ispc}bc - ispc -O2 $i -woff -o $bc --emit-llvm --target=$target + ispc $ISPC_ARGS $i -o $bc --emit-llvm if [[ $? != 0 ]]; then surprises=1 echo Test $i FAILED ispc compile