Revert "Suppress compiler warnings in libunwind/libcxxabi if llvm cmake files are unavailable"
This reverts commit 92f301f775.
With the latest versions of libunwind and libcxxabi, the -w option
for suppressing compiler warnings isn't added any longer when building
with the llvm cmake files available.
This commit is contained in:
1 parent
bc4dde7cd1
commit
371f002680
1 file changed
+2
-9
+2
-9
@@ -89,9 +89,6 @@ build_all() {
|
|||||||
for arch in $ARCHS; do
|
for arch in $ARCHS; do
|
||||||
mkdir -p build-$arch-$type
|
mkdir -p build-$arch-$type
|
||||||
cd build-$arch-$type
|
cd build-$arch-$type
|
||||||
# If llvm-config and the llvm cmake files are available, -w gets added
|
|
||||||
# to the compiler flags; manually add it here to avoid noisy warnings
|
|
||||||
# that normally are suppressed.
|
|
||||||
cmake \
|
cmake \
|
||||||
${CMAKE_GENERATOR+-G} "$CMAKE_GENERATOR" \
|
${CMAKE_GENERATOR+-G} "$CMAKE_GENERATOR" \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
@@ -112,8 +109,7 @@ build_all() {
|
|||||||
-DLIBUNWIND_ENABLE_STATIC=$STATIC \
|
-DLIBUNWIND_ENABLE_STATIC=$STATIC \
|
||||||
-DLIBUNWIND_ENABLE_CROSS_UNWINDING=FALSE \
|
-DLIBUNWIND_ENABLE_CROSS_UNWINDING=FALSE \
|
||||||
-DLIBUNWIND_STANDALONE_BUILD=TRUE \
|
-DLIBUNWIND_STANDALONE_BUILD=TRUE \
|
||||||
-DCMAKE_CXX_FLAGS="-nostdinc++ -I$LIBCXX/include -w" \
|
-DCMAKE_CXX_FLAGS="-nostdinc++ -I$LIBCXX/include" \
|
||||||
-DCMAKE_C_FLAGS="-w" \
|
|
||||||
-DCMAKE_SHARED_LINKER_FLAGS="-lpsapi" \
|
-DCMAKE_SHARED_LINKER_FLAGS="-lpsapi" \
|
||||||
..
|
..
|
||||||
make -j$CORES
|
make -j$CORES
|
||||||
@@ -136,9 +132,6 @@ build_all() {
|
|||||||
for arch in $ARCHS; do
|
for arch in $ARCHS; do
|
||||||
mkdir -p build-$arch-$type
|
mkdir -p build-$arch-$type
|
||||||
cd build-$arch-$type
|
cd build-$arch-$type
|
||||||
# If llvm-config and the llvm cmake files are available, -w gets added
|
|
||||||
# to the compiler flags; manually add it here to avoid noisy warnings
|
|
||||||
# that normally are suppressed.
|
|
||||||
if [ "$type" = "shared" ]; then
|
if [ "$type" = "shared" ]; then
|
||||||
LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_BUILDING_LIBRARY -U_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS"
|
LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_BUILDING_LIBRARY -U_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS"
|
||||||
else
|
else
|
||||||
@@ -166,7 +159,7 @@ build_all() {
|
|||||||
-DLIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS=OFF \
|
-DLIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS=OFF \
|
||||||
-DLLVM_NO_OLD_LIBSTDCXX=TRUE \
|
-DLLVM_NO_OLD_LIBSTDCXX=TRUE \
|
||||||
-DCXX_SUPPORTS_CXX11=TRUE \
|
-DCXX_SUPPORTS_CXX11=TRUE \
|
||||||
-DCMAKE_CXX_FLAGS="$LIBCXXABI_VISIBILITY_FLAGS -D_LIBCPP_HAS_THREAD_API_WIN32 -w" \
|
-DCMAKE_CXX_FLAGS="$LIBCXXABI_VISIBILITY_FLAGS -D_LIBCPP_HAS_THREAD_API_WIN32" \
|
||||||
..
|
..
|
||||||
make -j$CORES
|
make -j$CORES
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
Reference in new issue
Block a user