build-libcxx: Avoid warnings when building latest libcxxabi
This commit is contained in:
1 parent
10ac7a59dd
commit
92bb096468
1 file changed
+8
-1
+8
-1
@@ -184,7 +184,14 @@ 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"
|
# Define _LIBCPP_BUILDING_LIBRARY, to an empty string to match
|
||||||
|
# cases in source files that also do
|
||||||
|
# "#define _LIBCPP_BUILDING_LIBRARY". Since Nov 3 2020, libcxxabi
|
||||||
|
# itself also defines this, but with a plain
|
||||||
|
# -D_LIBCPP_BUILDING_LIBRARY, which defines it to 1. Therefore,
|
||||||
|
# first undefine any potential existing define from the command
|
||||||
|
# line, to avoid conflicts.
|
||||||
|
LIBCXXABI_VISIBILITY_FLAGS="-U_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_BUILDING_LIBRARY= -U_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS"
|
||||||
else
|
else
|
||||||
LIBCXXABI_VISIBILITY_FLAGS=""
|
LIBCXXABI_VISIBILITY_FLAGS=""
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user