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:
1 parent
a0d10c51cc
commit
56506a5c6e
1 file changed
+1
-1
+1
-1
@@ -134,7 +134,7 @@ build_all() {
|
|||||||
mkdir -p build-$arch-$type
|
mkdir -p build-$arch-$type
|
||||||
cd build-$arch-$type
|
cd build-$arch-$type
|
||||||
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
|
||||||
LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS"
|
LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user