Build a test program for testing TLS support

This commit is contained in:
Martin Storsjö committed 2017-12-04 13:53:44 +02:00
1 parent 634ae81950
commit edcf22bec4
2 files changed
+43 -1

No files matched your search

+6 -1
View File
@@ -250,7 +250,7 @@ RUN cd libcxx && \
RUN cd $TOOLCHAIN_PREFIX/include && ln -s ../$(echo $TOOLCHAIN_ARCHS | awk '{print $1}')-w64-mingw32/include/c++ .
COPY hello.c hello.cpp hello-exception.cpp /build/hello/
COPY hello.c hello.cpp hello-exception.cpp hello-tls.c /build/hello/
RUN cd hello && \
for arch in $TOOLCHAIN_ARCHS; do \
$arch-w64-mingw32-clang hello.c -o hello-$arch.exe || exit 1; \
@@ -266,6 +266,11 @@ RUN cd hello && \
$arch-w64-mingw32-clang++ hello-exception.cpp -o hello-exception-$arch.exe || exit 1; \
done
RUN cd hello && \
for arch in $TOOLCHAIN_ARCHS; do \
$arch-w64-mingw32-clang hello-tls.c -o hello-tls-$arch.exe || exit 1; \
done
ENV AR=llvm-ar
ENV RANLIB=llvm-ranlib
ENV AS=llvm-as