From a53599c1754823b2d5a0007ec679ec217793e8d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 19 Oct 2017 10:50:13 +0300 Subject: [PATCH] Stop setting -D_LIB*_DISABLE_VISIBILITY_ANNOTATIONS while building user code This actually gets set by default by the installed config headers, depending on how the libraries were configured. Also, the -Xclang -flto-visibility-public-std workaround doesn't seem to be necessary while building these test apps (but it might potentially be necessary if building more complicated apps). --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5949a46..0d0ece7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -281,10 +281,10 @@ RUN cd /build/hello && \ RUN cd /build/hello && \ for arch in armv7 aarch64 x86_64 i686; do \ - $arch-w64-mingw32-clang++ hello.cpp -o hello-cpp-$arch.exe -fno-exceptions -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -Xclang -flto-visibility-public-std -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS || exit 1; \ + $arch-w64-mingw32-clang++ hello.cpp -o hello-cpp-$arch.exe -fno-exceptions || exit 1; \ done RUN cd /build/hello && \ for arch in armv7 x86_64 i686; do \ - $arch-w64-mingw32-clang++ hello-exception.cpp -o hello-exception-$arch.exe -fsjlj-exceptions -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -Xclang -flto-visibility-public-std -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS || exit 1; \ + $arch-w64-mingw32-clang++ hello-exception.cpp -o hello-exception-$arch.exe -fsjlj-exceptions || exit 1; \ done