Add a script for building the test applications and running them
This commit is contained in:
1 parent
fa5b73dc01
commit
2e994e681c
2 files changed
+27
No files matched your search
@@ -0,0 +1 @@
|
||||
*.exe
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo $0 dest
|
||||
exit 1
|
||||
fi
|
||||
PREFIX="$1"
|
||||
export PATH=$PREFIX/bin:$PATH
|
||||
|
||||
: ${ARCHS:=${TOOLCHAIN_ARCHS-i686 x86_64 armv7 aarch64}}
|
||||
|
||||
cd hello
|
||||
for arch in $ARCHS; do
|
||||
$arch-w64-mingw32-clang hello.c -o hello-$arch.exe
|
||||
$arch-w64-mingw32-clang hello-tls.c -o hello-tls-$arch.exe
|
||||
$arch-w64-mingw32-clang++ hello.cpp -o hello-cpp-$arch.exe -fno-exceptions
|
||||
$arch-w64-mingw32-clang++ hello-exception.cpp -o hello-exception-$arch.exe
|
||||
if [ "$arch" = "i686" ] || [ "$arch" = "x86_64" ]; then
|
||||
wine hello-$arch.exe
|
||||
wine hello-tls-$arch.exe
|
||||
wine hello-cpp-$arch.exe
|
||||
wine hello-exception-$arch.exe
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user