From a0d10c51cce2e8fdc891cc7c9e6a202a2e9b793c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 23 Jan 2019 23:31:14 +0200 Subject: [PATCH] Build libunwind with -Wno-dll-attribute-on-redeclaration libunwind doesn't have the dllexport attributes on the original declarations of functions, and clang normally warns about this. --- build-libcxx.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-libcxx.sh b/build-libcxx.sh index d9ed8d3..8665e3f 100755 --- a/build-libcxx.sh +++ b/build-libcxx.sh @@ -109,7 +109,8 @@ build_all() { -DLIBUNWIND_ENABLE_STATIC=$STATIC \ -DLIBUNWIND_ENABLE_CROSS_UNWINDING=FALSE \ -DLIBUNWIND_STANDALONE_BUILD=TRUE \ - -DCMAKE_CXX_FLAGS="-nostdinc++ -I$LIBCXX/include" \ + -DCMAKE_CXX_FLAGS="-nostdinc++ -I$LIBCXX/include -Wno-dll-attribute-on-redeclaration" \ + -DCMAKE_C_FLAGS="-Wno-dll-attribute-on-redeclaration" \ -DCMAKE_SHARED_LINKER_FLAGS="-lpsapi" \ .. make -j$CORES