Skip to content

Commit a0d10c5

Browse files
committed
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.
1 parent 371f002 commit a0d10c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-libcxx.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ build_all() {
109109
-DLIBUNWIND_ENABLE_STATIC=$STATIC \
110110
-DLIBUNWIND_ENABLE_CROSS_UNWINDING=FALSE \
111111
-DLIBUNWIND_STANDALONE_BUILD=TRUE \
112-
-DCMAKE_CXX_FLAGS="-nostdinc++ -I$LIBCXX/include" \
112+
-DCMAKE_CXX_FLAGS="-nostdinc++ -I$LIBCXX/include -Wno-dll-attribute-on-redeclaration" \
113+
-DCMAKE_C_FLAGS="-Wno-dll-attribute-on-redeclaration" \
113114
-DCMAKE_SHARED_LINKER_FLAGS="-lpsapi" \
114115
..
115116
make -j$CORES

0 commit comments

Comments
 (0)