Avoid warnings when building libcxxabi due to redefining _LIBCPP_BUILDING_LIBRARY

Some libcxxabi source files define _LIBCPP_BUILDING_LIBRARY themselves.

A "#define FOO" in a file defines it to "", while "-DFOO" on the command
line defines it to "1". Define it on the command line using "-DFOO=" to
make it match the #define within the source files.
This commit is contained in:
Martin Storsjö committed 2019-01-24 11:12:17 +02:00
1 parent a0d10c51cc
commit 56506a5c6e
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ build_all() {
mkdir -p build-$arch-$type
cd build-$arch-$type
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
LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS"
fi