Build tests in a separate subdirectory for each arch
This eases cases when testcases contain DLLs, whose names won't contain the arch name.
This commit is contained in:
1 parent
cef45a8937
commit
0448bd616a
2 files changed
+19
-10
No files matched your search
+4
-2
@@ -55,8 +55,9 @@ ENV PATH=$TOOLCHAIN_PREFIX/bin:$PATH
|
||||
COPY test/*.c ./test/
|
||||
RUN cd test && \
|
||||
for arch in $TOOLCHAIN_ARCHS; do \
|
||||
mkdir -p $arch && \
|
||||
for test in hello hello-tls crt-test setjmp; do \
|
||||
$arch-w64-mingw32-clang $test.c -o $test-$arch.exe || exit 1; \
|
||||
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe || exit 1; \
|
||||
done; \
|
||||
done
|
||||
|
||||
@@ -68,8 +69,9 @@ RUN ./build-libcxx.sh $TOOLCHAIN_PREFIX
|
||||
COPY test/*.cpp ./test/
|
||||
RUN cd test && \
|
||||
for arch in $TOOLCHAIN_ARCHS; do \
|
||||
mkdir -p $arch && \
|
||||
for test in hello-cpp hello-exception tlstest-main; do \
|
||||
$arch-w64-mingw32-clang++ $test.cpp -o $test-$arch.exe || exit 1; \
|
||||
$arch-w64-mingw32-clang++ $test.cpp -o $arch/$test.exe || exit 1; \
|
||||
done; \
|
||||
$arch-w64-mingw32-clang++ tlstest-lib.cpp -shared -o tlstest-lib-$arch.dll || exit 1; \
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user